Polygon with holes not handled by 
----------------------------------

                 Key: GEOT-1194
                 URL: http://jira.codehaus.org/browse/GEOT-1194
             Project: GeoTools
          Issue Type: Bug
          Components: data arcsde
    Affects Versions: 2.3.0
         Environment: Java 1.5.x, Linux centos/redhat 4.x, ArcSDE 9.0, Oracle 
10,9
            Reporter: Lars Aksel Opsahl
         Assigned To: Gabriel Roldán


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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to