public void testNormalizeLineString4() throws Exception { LineString l = (LineString) this.geometryFactory.geometry("LINESTRING(200 240,140 160,80 160,160 80,80 80)"); l = l.normalize(); final LineString expectedValue = (LineString) this.geometryFactory.geometry("LINESTRING(80 80,160 80,80 160,140 160,200 240)"); assertEqualsExact(expectedValue, l); }
public void testNormalizeLineString2() throws Exception { LineString l = (LineString) this.geometryFactory.geometry("LINESTRING(20 20,160 40,160 100,100 120,60 60)"); l = l.normalize(); final LineString expectedValue = (LineString) this.geometryFactory.geometry("LINESTRING (20 20,160 40,160 100,100 120,60 60)"); assertEqualsExact(expectedValue, l); }
public void testNormalizeLineString5() throws Exception { final LineString geometry = (LineString) this.geometryFactory.geometry( "LINESTRING(200 340,140 240,140 160,60 240,140 240,200 340)"); final LineString normalized = geometry.normalize(); final LineString expectedValue = (LineString) this.geometryFactory.geometry( "LINESTRING (200 340,140 240,60 240,140 160,140 240,200 340)"); assertEqualsExact(expectedValue, normalized); }
public void testNormalizeEmptyLineString() throws Exception { LineString l = (LineString) this.geometryFactory.geometry("LINESTRING EMPTY"); l = l.normalize(); final LineString expectedValue = (LineString) this.geometryFactory.geometry("LINESTRING EMPTY"); assertEqualsExact(expectedValue, l); }