Hello, A LinearRing will always have an area of 0 because it is linear, not polygonal. Having the start and end coordinates the same gives you a closed ring but unless you create a Polygon or MultiPolygon with it you still just have a line.
Michael On 10 October 2011 17:39, filippov70 <filippo...@gmail.com> wrote: > 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 > ------------------------------------------------------------------------------ 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