Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.1.M5
-
Fix Version/s: 2.1.1
-
Component/s: jdbc-oracle plugin
-
Labels:None
-
Environment:Windows XP, Java 1.5, Oracle 9i
Description
Class org.geotools.data.oracle.sdo.SDO
Methods createMultiLine and createMultiPolygon:
the next code snippet (common for both methods) seems to be an error (the comment says the opposite to the condition in the if sentence). We have tried accessing multipolygons and multilines in Oracle and it gives us the warning. Removing the ! operator in the if condition seems to fix the problem.
------------------------------------------------
if (!(INTERPRETATION > 1))
--------------------------------------------------
-
Hide
- oracle-spatial-2.1.RC1.jar
- 16/Sep/05 4:47 AM
- 54 kB
- Chris Holmes
-
- META-INF/MANIFEST.MF 0.3 kB
- META-INF/.../org.geotools.data.DataStoreFactorySpi 0.1 kB
- org/geotools/data/.../attributeio/blame.txt 0.0 kB
- org/geotools/.../SDOAttributeIO.class 4 kB
- org/geotools/.../oracle/FIDSequence.class 2 kB
- org/.../OracleConnectionFactory.class 3 kB
- org/geotools/.../OracleDataStore.class 9 kB
- org/.../OracleDataStoreFactory$1.class 2 kB
- org/.../OracleDataStoreFactory.class 6 kB
- org/geotools/.../OracleFeatureWriter.class 0.9 kB
- org/.../OracleOCIDataStoreFactory$1.class 2 kB
- org/.../OracleOCIDataStoreFactory.class 5 kB
- org/geotools/.../sdo/AttributeList.class 3 kB
- org/geotools/.../sdo/CoordinateAccess.class 0.8 kB
- org/.../CoordinateAccessFactory.class 0.4 kB
- org/geotools/data/.../sdo/Coordinates.class 8 kB
- org/geotools/data/oracle/sdo/ETYPE.class 0.5 kB
- org/geotools/.../sdo/GeometryConverter.class 9 kB
- org/geotools/data/.../sdo/OrdinateList.class 2 kB
- org/geotools/data/oracle/sdo/SDO.class 36 kB
- org/geotools/data/oracle/sdo/TT.class 0.4 kB
- org/geotools/.../SqlStatementEncoder.class 4 kB
- org/geotools/.../SQLEncoderOracle.class 13 kB
Issue Links
- is duplicated by
-
GEOT-687
Oracle "Could not create MultiPolygon with INTERPRETATION 1 etc." - including fix
-
Activity
Hide
Jody Garnett
added a comment -
The above mentioned code seemed to be the case of an enthusiastic cut and paste - problem resolved on 2.1.1 (patch will be applied to 2.2.x shortly)
Show
Jody Garnett
added a comment - The above mentioned code seemed to be the case of an enthusiastic cut and paste - problem resolved on 2.1.1 (patch will be applied to 2.2.x shortly)
Show
Chris Holmes
added a comment - just trying to attach the jar...
Hide
Chris Holmes
added a comment -
to use in geoserver replace the gt2-oracle.jar in WEB-INF/lib with this one. Hopefully it should work, let us know if it does the trick.
Show
Chris Holmes
added a comment - to use in geoserver replace the gt2-oracle.jar in WEB-INF/lib with this one. Hopefully it should work, let us know if it does the trick.
Show
Chris Holmes
added a comment - just wanted to attach the jar, turning this back to closed.
Show
Chris Holmes
added a comment - Lots of people on this one last week...
Below is a sample code
LikeFilter likeFilter = filterFactory.createLikeFilter();
Expression pattern = filterFactory.createLiteralExpression("*");
Expression attr = filterFactory.createAttributeExpression(null, column.name);
likeFilter.setPattern(pattern, "*", "?", "\\");
likeFilter.setValue(attr);
FeatureSource fs = dstore.getFeatureSource(column.table.name);
FeatureResults fr = fs.getFeatures();
FeatureCollection fc = fr.collection();
Iterator iter = fc.iterator();
Like Filter will not work for numeric field so use comparefilter
Regards,
Ritesh