| Constructor and Description |
|---|
Polygon(double[] lats,
double[] lons) |
Polygon(org.locationtech.jts.geom.prep.PreparedGeometry prepPolygon) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateArea() |
boolean |
contains(double lat,
double lon)
Does the point in polygon check.
|
boolean |
contains(Shape s) |
static Polygon |
create(org.locationtech.jts.geom.Polygon polygon) |
BBox |
getBounds() |
GHPoint |
getCenter() |
double |
getMaxLat() |
double |
getMaxLon() |
double |
getMinLat() |
double |
getMinLon() |
boolean |
intersects(PointList pointList) |
boolean |
intersects(Shape o) |
static Polygon |
parsePoints(String pointsStr) |
String |
toString() |
public Polygon(org.locationtech.jts.geom.prep.PreparedGeometry prepPolygon)
public Polygon(double[] lats,
double[] lons)
public static Polygon create(org.locationtech.jts.geom.Polygon polygon)
public boolean intersects(Shape o)
intersects in interface Shapepublic boolean intersects(PointList pointList)
intersects in interface Shapepublic boolean contains(double lat,
double lon)
public boolean contains(Shape s)
public BBox getBounds()
public GHPoint getCenter()
public double calculateArea()
calculateArea in interface Shapepublic double getMinLat()
public double getMinLon()
public double getMaxLat()
public double getMaxLon()
Copyright © 2012–2020. All rights reserved.