Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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);
 }