So extract the LinearRing for the outside; and for the holes; and check 
each one as you go. On most systems the outer ring goes one way; and the 
holes go another way.... that is why the SDO class had to know this 
stuff (so it could do what oracle expects).

>       Geometry g = 
> TopologyPreservingSimplifier.simplify(geometry.getGeometryN(i),distanceTolerance);
>       log.info("GeoType: " + g.getGeometryType());
>       Coordinate[] coords = g.getCoordinates();
>   
This line here is wrong! you need to break your polygon down into 
inner/outer rings and then check.
Jody

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to