/** * Returns the length of this <code>LineString</code> * *@return the length of the linestring */ public double getLength() { return Length.ofLine(points); }
void checkLengthOfLine(String wkt, double expectedLen) { LineString ring = (LineString) read(wkt); CoordinateSequence pts = ring.getCoordinateSequence(); double actual = Length.ofLine(pts); assertEquals(actual, expectedLen); } }