the polygonbuilder fails when constructing a geometry with holes after a union 
or symdifference operation.
----------------------------------------------------------------------------------------------------------

                 Key: GEOT-1310
                 URL: http://jira.codehaus.org/browse/GEOT-1310
             Project: GeoTools
          Issue Type: Bug
          Components: core geometry
    Affects Versions: 2.4-M0
            Reporter: Graham Davis
            Assignee: Graham Davis


There are a fair number of JUnit tests that fail to run because of this problem.

When doing certain operations on polygons, such as union and symdifference 
specifically, the resulting geometry is built using the polygon builder.  This 
uses the maximal/minimal ring edge classes, with implement RingImpl.  Often the 
resulting polygon is not a simple polygon, but rather a polygon with holes, for 
example.  The code tries to create a single maximal ring edge with all these 
edges/points.  This creates a single RingImpl and fails when it does its 
consistency check (often a point intersects but isn't the start or end point).  
It should really be constructed as one ring for the outer edges, and another 
ring for each hole.

Fixing this is going to require either some reworking of the ring edge system, 
or perhaps the ability to bypass the consistency check at this stage for this 
particular series of events.  It may be that we don't even want to use this 
system since doing a consistency check at this point seems expensive and 
unecessary. 

-- 
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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to