Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean sprawdzObiektwObszarze(ArrayList<Coordinate> obszar, Coordinate abonent) {
- final GeometryFactory gf = new GeometryFactory();
- LinearRing linearring = new LinearRing(new CoordinateArraySequence
- (obszar.toArray(newCoordinate[obszar.size()])), gf);
- final Polygon polygon = gf.createPolygon(linearring, null);
- final Point point = gf.createPoint(abonent);
- return point.within(polygon);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement