[geos-devel] Fixed: Bug in isValid for certain kinds of invalid polygon holes

Martin Davis mbdavis at VividSolutions.com
Fri Nov 5 16:41:44 EST 2004


A bug was recently reported involving isValid throwing an exception for
polygons with certain kinds of invalid hole rings.  This has now been
fixed and will appear in the next release of JTS  (and probably GEOS
too).
 
(The problem test case is:
 
POLYGON ((
        37.654639 55.726496, 
        37.654056 55.726947, 
        37.653801 55.727333, 
        37.653801 55.727435, 
        37.654468 55.727483, 
        37.656654 55.727466, 
        37.656572 55.727063, 
        37.656654 55.726713, 
        37.657052 55.726531, 
        37.657571 55.726365, 
        37.658071 55.725961, 
        37.658321 55.725609, 
        37.658303 55.725374, 
        37.658321 55.725609, 
        37.658906 55.725309, 
        37.659488 55.72511, 
        37.658135 55.724571, 
        37.657386 55.724922, 
        37.657135 55.724873, 
        37.65647 55.725274, 
        37.655635 55.725828, 
        37.655195 55.7265, 
        37.655635 55.725927, 
        37.654639 55.726496
    ), (
        37.658321 55.725609, 
        37.658906 55.725309, 
        37.659488 55.72511, 
        37.658906 55.725309, 
        37.658321 55.725609
    ))
 
Martin Davis, Senior Technical Architect
Vivid Solutions Inc.      www.vividsolutions.com
Suite #1A-2328 Government Street Victoria, B.C. V8T 5G5
Phone: (250) 385 6040 - Local 308 Fax: (250) 385 6046
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20041105/c0274fac/attachment.html


More information about the geos-devel mailing list