Advertisement
Guest User

GarciaPL

a guest
Oct 20th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. public boolean sprawdzObiektwObszarze(ArrayList<Coordinate> obszar, Coordinate abonent) {
  2.         final GeometryFactory gf = new GeometryFactory();
  3.         LinearRing linearring = new LinearRing(new CoordinateArraySequence
  4. (obszar.toArray(newCoordinate[obszar.size()])), gf);
  5.         final Polygon polygon = gf.createPolygon(linearring, null);
  6.         final Point point = gf.createPoint(abonent);
  7.         return point.within(polygon);
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement