Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // get first coordinate
  2. Coordinate first = yourPolygon.getCoordinates()[0];
  3. // get last coordinate (same as first)
  4. Coordinate last = yourPolygon.getCoordinates()[yourPolygon.getCoordinates().length-1];
  5. // get last coordinate before closing
  6. Coordinate lastBeforeClosing = yourPolygon.getCoordinates()[yourPolygon.getCoordinates().length-2];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement