GeometryCoordinateSequenceTransformer transforms linear rings to open 
linestrings
---------------------------------------------------------------------------------

                 Key: GEOT-1830
                 URL: http://jira.codehaus.org/browse/GEOT-1830
             Project: GeoTools
          Issue Type: Bug
          Components: core geometry
    Affects Versions: 2.4.2
         Environment: Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
Ubuntu 8.04 (Linux 2.6.24)
            Reporter: Karel Maesen


When transforming a polygon using org.geotools.geometry.JTS.transform, the 
linear rings are sometimes transformed to open linestrings. This causes an 
exception such as this:

Exception in thread "Thread-2" java.lang.IllegalArgumentException: points must 
form a closed linestring
        at 
com.vividsolutions.jts.geom.LinearRing.validateConstruction(LinearRing.java:95)
        at com.vividsolutions.jts.geom.LinearRing.<init>(LinearRing.java:90)
        at 
com.vividsolutions.jts.geom.GeometryFactory.createLinearRing(GeometryFactory.java:324)
        at 
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transformLineString(GeometryCoordinateSequenceTransformer.java:152)
        at 
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transformPolygon(GeometryCoordinateSequenceTransformer.java:186)
        at 
org.geotools.geometry.jts.GeometryCoordinateSequenceTransformer.transform(GeometryCoordinateSequenceTransformer.java:112)
        at org.geotools.geometry.jts.JTS.transform(JTS.java:220)



-- 
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: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to