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