public class BoundingBox extends Object
| Constructor and Description |
|---|
BoundingBox()
Constructor
|
BoundingBox(BoundingBox boundingBox)
Constructor
|
BoundingBox(double minLongitude,
double minLatitude,
double maxLongitude,
double maxLatitude)
Constructor
|
BoundingBox(mil.nga.sf.GeometryEnvelope envelope)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
BoundingBox |
boundCoordinates(double maxProjectionLongitude)
Bound the bounding box longitudes within the min and max possible
projection values.
|
BoundingBox |
boundWebMercatorCoordinates()
Bound the bounding box coordinates within Web Mercator range values
|
BoundingBox |
boundWgs84Coordinates()
Bound the bounding box coordinates within WGS84 range values
|
mil.nga.sf.GeometryEnvelope |
buildEnvelope()
Build a Geometry Envelope from the bounding box
|
BoundingBox |
complementary(double maxProjectionLongitude)
If the bounding box spans the Anti-Meridian, attempt to get a
complementary bounding box using the max longitude of the unit projection
|
BoundingBox |
complementaryWebMercator()
If the bounding box spans the Anti-Meridian, attempt to get a
complementary Web Mercator bounding box
|
BoundingBox |
complementaryWgs84()
If the bounding box spans the Anti-Meridian, attempt to get a
complementary WGS84 bounding box
|
boolean |
equals(Object obj) |
BoundingBox |
expandCoordinates(double maxProjectionLongitude)
Expand the bounding box max longitude above the max possible projection
value if needed to create a bounding box where the max longitude is
numerically larger than the min longitude.
|
BoundingBox |
expandWebMercatorCoordinates()
Expand the bounding box max longitude above the max Web Mercator
projection value if needed to create a bounding box where the max
longitude is numerically larger than the min longitude.
|
BoundingBox |
expandWgs84Coordinates()
Expand the bounding box max longitude above the max WGS84 projection
value if needed to create a bounding box where the max longitude is
numerically larger than the min longitude.
|
double |
getMaxLatitude() |
double |
getMaxLongitude() |
double |
getMinLatitude() |
double |
getMinLongitude() |
int |
hashCode() |
void |
setMaxLatitude(double maxLatitude) |
void |
setMaxLongitude(double maxLongitude) |
void |
setMinLatitude(double minLatitude) |
void |
setMinLongitude(double minLongitude) |
BoundingBox |
transform(mil.nga.sf.proj.ProjectionTransform transform)
Transform the bounding box using the provided projection transform
|
public BoundingBox()
public BoundingBox(double minLongitude,
double minLatitude,
double maxLongitude,
double maxLatitude)
minLongitude - min longitudeminLatitude - min latitudemaxLongitude - max longitudemaxLatitude - max latitudepublic BoundingBox(BoundingBox boundingBox)
boundingBox - public BoundingBox(mil.nga.sf.GeometryEnvelope envelope)
envelope - geometry envelopepublic double getMinLongitude()
public void setMinLongitude(double minLongitude)
public double getMaxLongitude()
public void setMaxLongitude(double maxLongitude)
public double getMinLatitude()
public void setMinLatitude(double minLatitude)
public double getMaxLatitude()
public void setMaxLatitude(double maxLatitude)
public mil.nga.sf.GeometryEnvelope buildEnvelope()
public BoundingBox complementary(double maxProjectionLongitude)
maxProjectionLongitude - max longitude of the world for the current bounding box unitspublic BoundingBox complementaryWgs84()
public BoundingBox complementaryWebMercator()
public BoundingBox boundCoordinates(double maxProjectionLongitude)
maxProjectionLongitude - max longitude of the world for the current bounding box unitspublic BoundingBox boundWgs84Coordinates()
public BoundingBox boundWebMercatorCoordinates()
public BoundingBox expandCoordinates(double maxProjectionLongitude)
maxProjectionLongitude - max longitude of the world for the current bounding box unitspublic BoundingBox expandWgs84Coordinates()
public BoundingBox expandWebMercatorCoordinates()
public BoundingBox transform(mil.nga.sf.proj.ProjectionTransform transform)
transform - projection transformCopyright © 2018 National Geospatial-Intelligence Agency. All rights reserved.