Use JTS topology in JavaFx
- by borovsky
I have some polygon in jts topology library.
if I want to draw on javafx pane I do:
Polygon poly=new Polygon();//javafx
//g is geometry of jts
for (Coordinate coord : g.getCoordinates())
{
poly.getPoints().addAll(coord.x, coord.y);
}
and got extra four edges that are not expected:
but the same data look good in test builder:
what is wrong? order of traversing the geometry?
any ideas?