Hi! I understand the problem. In the source file "holes" in the polygon, as well as the shell is not in order, for example, the coordinates of the shell did not go to the beginning of the description of the landfill. I decided to determine the maximum area among all of the Rings:
double maxArea = MainRing.getArea(); but the area == 0.0; isClosed() == true; I do not understand why it is so, the length of the ring is, and area 0. maybe it's because of the orientation of the ring, although the documentation for the JTS "The SFS does not specify a requirement on the orientation of a LinearRing. JTS follows this by allowing LinearRings to be oriented either clockwise or counter-clockwise." -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/writing-shapefile-problem-tp6846785p6875903.html Sent from the geotools-gt2-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users