@@ -25,7 +25,8 @@ public void execute() throws Exception {
2525 + "(8.017822881853032 7.492806794533148))" ;
2626 DelaunayTriangulationOptions options = new DelaunayTriangulationOptions ();
2727 options .setGeometry (inputGeometry );
28-
28+ options .setConforming (false );
29+
2930 Reader reader = new StringReader (inputGeometry );
3031 StringWriter writer = new StringWriter ();
3132
@@ -74,5 +75,22 @@ public void run() throws Exception {
7475 + "12.73833434783841, 9.260874914207697 13.087320259444919)), POLYGON ((12.27256417862947 "
7576 + "12.73833434783841, 8.017822881853032 7.492806794533148, 13.737894633461437 "
7677 + "7.658802439672621, 12.27256417862947 12.73833434783841)))" , result );
78+
79+ // Geometry from input stream
80+ result = runApp (new String []{
81+ "delaunay" ,
82+ "-c"
83+ }, "MULTIPOINT ((12.27256417862947 12.73833434783841), "
84+ + "(13.737894633461437 7.658802439672621), "
85+ + "(6.857126638942733 8.821305316892328), "
86+ + "(9.260874914207697 13.087320259444919), "
87+ + "(8.017822881853032 7.492806794533148))" );
88+ assertEquals ("GEOMETRYCOLLECTION (POLYGON ((6.857126638942733 8.821305316892328, "
89+ + "8.017822881853032 7.492806794533148, 9.260874914207697 13.087320259444919, "
90+ + "6.857126638942733 8.821305316892328)), POLYGON ((9.260874914207697 "
91+ + "13.087320259444919, 8.017822881853032 7.492806794533148, 12.27256417862947 "
92+ + "12.73833434783841, 9.260874914207697 13.087320259444919)), POLYGON ((12.27256417862947 "
93+ + "12.73833434783841, 8.017822881853032 7.492806794533148, 13.737894633461437 "
94+ + "7.658802439672621, 12.27256417862947 12.73833434783841)))" , result );
7795 }
7896}
0 commit comments