public class BoundingBox
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
BoundingBox(org.locationtech.jts.geom.Point ll,
org.locationtech.jts.geom.Point ur,
java.lang.String srs) |
| Modifier and Type | Method and Description |
|---|---|
org.locationtech.jts.geom.Envelope |
asEnvelop() |
boolean |
contains(org.locationtech.jts.geom.Geometry geometry)
Indicates if the given geometry is contained completely by this instance.
|
void |
extendBy(org.locationtech.jts.geom.Point point)
Extends the bounding box with the given point.
|
org.locationtech.jts.geom.Point |
getLowerLeft() |
java.lang.String |
getSrs() |
org.locationtech.jts.geom.Point |
getUpperRight() |
void |
setLl(org.locationtech.jts.geom.Point ll) |
void |
setUr(org.locationtech.jts.geom.Point ur) |
java.lang.String |
toString() |
public BoundingBox(org.locationtech.jts.geom.Point ll,
org.locationtech.jts.geom.Point ur,
java.lang.String srs)
ll - the lower left cornerur - the upper right cornersrs - the spatial reference systempublic boolean contains(org.locationtech.jts.geom.Geometry geometry)
geometry - the geometry to checkpublic org.locationtech.jts.geom.Envelope asEnvelop()
public void extendBy(org.locationtech.jts.geom.Point point)
point - the point in CRS:84 which shall extend the bounding box.public void setLl(org.locationtech.jts.geom.Point ll)
public void setUr(org.locationtech.jts.geom.Point ur)
public org.locationtech.jts.geom.Point getLowerLeft()
public org.locationtech.jts.geom.Point getUpperRight()
public java.lang.String getSrs()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013–2019 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.