public class BoundingBox extends Object
| Constructor and Description |
|---|
BoundingBox() |
BoundingBox(double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax,
double mMin,
double mMax) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the bounding box by resetting it to its initial state.
|
BoundingBox |
copy()
Creates a copy of the current bounding box.
|
double |
getMMax() |
double |
getMMin() |
double |
getXMax() |
double |
getXMin() |
double |
getYMax() |
double |
getYMin() |
double |
getZMax() |
double |
getZMin() |
boolean |
isMEmpty()
Checks if the bounding box is empty in the M dimension.
|
boolean |
isMValid()
Checks if the M dimension of the bounding box is valid.
|
boolean |
isValid()
Checks if the bounding box is valid.
|
static boolean |
isWraparound(double xmin,
double xmax)
The Parquet specification allows X bounds to be "wraparound" to allow for
more compact bounding boxes when a geometry happens to include components
on both sides of the antimeridian (e.g., the nation of Fiji).
|
boolean |
isXEmpty()
Checks if the bounding box is empty in the X dimension.
|
boolean |
isXValid()
Checks if the X dimension of the bounding box is valid.
|
boolean |
isXWraparound()
Checks if the X dimension of this bounding box wraps around the antimeridian.
|
boolean |
isXYEmpty()
Checks if the bounding box is empty in the X / Y dimension.
|
boolean |
isXYValid()
Checks if the X and Y dimensions of the bounding box are valid.
|
boolean |
isYEmpty()
Checks if the bounding box is empty in the Y dimension.
|
boolean |
isYValid()
Checks if the Y dimension of the bounding box is valid.
|
boolean |
isZEmpty()
Checks if the bounding box is empty in the Z dimension.
|
boolean |
isZValid()
Checks if the Z dimension of the bounding box is valid.
|
void |
merge(BoundingBox other)
Expands this bounding box to include the bounds of another box.
|
void |
reset()
Resets the bounding box to its initial state.
|
String |
toString() |
void |
update(org.locationtech.jts.geom.Geometry geometry)
Extends this bounding box to include the spatial extent of the provided geometry.
|
public BoundingBox()
public BoundingBox(double xMin,
double xMax,
double yMin,
double yMax,
double zMin,
double zMax,
double mMin,
double mMax)
public double getXMin()
public double getXMax()
public double getYMin()
public double getYMax()
public double getZMin()
public double getZMax()
public double getMMin()
public double getMMax()
public boolean isValid()
public boolean isXYValid()
public boolean isXValid()
public boolean isYValid()
public boolean isZValid()
public boolean isMValid()
public boolean isXYEmpty()
public boolean isXEmpty()
public boolean isYEmpty()
public boolean isZEmpty()
public boolean isMEmpty()
public boolean isXWraparound()
public void merge(BoundingBox other)
other - the other BoundingBox whose bounds will be merged into this onepublic void update(org.locationtech.jts.geom.Geometry geometry)
geometry - The geometry whose coordinates will be used to update this bounding box.
If null or empty, the method returns without making any changes.public void abort()
public void reset()
public static boolean isWraparound(double xmin,
double xmax)
public BoundingBox copy()
Copyright © 2024 The Apache Software Foundation. All rights reserved.