Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.3.0
-
Fix Version/s: 2.6-M2
-
Component/s: arcsde plugin
-
Labels:None
-
Environment:Java 1.5.x, Linux centos/redhat 4.x, ArcSDE 9.0, Oracle 10,9
Description
If you read polygons with holes from using Polygon type from the oracle database, the holes are not read. A work around for this has bug ha in years been to use MulitiPolygon, but that causes invalid shape files for Arcview.
The bug is line 883 and 892 in the file plugin/arcsde/datastore/src/org/geotools/data/arcsde/GeometryBuilder.java
Current code is
883:int nHoles = parts.length - 1;
892:linearCoordArray = parts[i + 1][0];
I have changed my own code to the following and then
it works ok with polygon.
883:int nHoles = parts[0].length - 1;
892:linearCoordArray = parts[0][i + 1];
I have tested this with many many hundred thousand of polygons and so far
this have worked ok. I will test it with Arcsde 9.2 next week.