Package org.apache.orc.geospatial
Class BoundingBox
java.lang.Object
org.apache.orc.geospatial.BoundingBox
Bounding box for Geometry or Geography type in the representation of min/max
 value pairs of coordinates from each axis.
 A bounding box is considered valid if none of the X / Y dimensions contain NaN.
- 
Constructor SummaryConstructorsConstructorDescriptionBoundingBox(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax, double mMin, double mMax) 
- 
Method SummaryModifier and TypeMethodDescriptioncopy()Creates a copy of the current bounding box.booleandoublegetMMax()doublegetMMin()doublegetXMax()doublegetXMin()doublegetYMax()doublegetYMin()doublegetZMax()doublegetZMin()inthashCode()booleanisMEmpty()Checks if the bounding box is empty in the M dimension.booleanisMValid()Checks if the M dimension of the bounding box is valid.booleanisValid()Checks if the bounding box is valid.booleanisXEmpty()Checks if the bounding box is empty in the X dimension.booleanisXValid()Checks if the X dimension of the bounding box is valid.booleanChecks if the bounding box is empty in the X / Y dimension.booleanChecks if the X and Y dimensions of the bounding box are valid.booleanisYEmpty()Checks if the bounding box is empty in the Y dimension.booleanisYValid()Checks if the Y dimension of the bounding box is valid.booleanisZEmpty()Checks if the bounding box is empty in the Z dimension.booleanisZValid()Checks if the Z dimension of the bounding box is valid.voidmerge(BoundingBox other) Expands this bounding box to include the bounds of another box.voidreset()Resets the bounding box to its initial state.toString()voidupdate(org.locationtech.jts.geom.Geometry geometry) Extends this bounding box to include the spatial extent of the provided geometry.
- 
Constructor Details- 
BoundingBoxpublic BoundingBox()
- 
BoundingBoxpublic BoundingBox(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax, double mMin, double mMax) 
 
- 
- 
Method Details- 
equals
- 
hashCodepublic int hashCode()
- 
getXMinpublic double getXMin()
- 
getXMaxpublic double getXMax()
- 
getYMinpublic double getYMin()
- 
getYMaxpublic double getYMax()
- 
getZMinpublic double getZMin()
- 
getZMaxpublic double getZMax()
- 
getMMinpublic double getMMin()
- 
getMMaxpublic double getMMax()
- 
isValidpublic boolean isValid()Checks if the bounding box is valid. A bounding box is considered valid if none of the X / Y dimensions contain NaN.- Returns:
- true if the bounding box is valid, false otherwise.
 
- 
isXYValidpublic boolean isXYValid()Checks if the X and Y dimensions of the bounding box are valid. The X and Y dimensions are considered valid if none of the bounds contain NaN.- Returns:
- true if the X and Y dimensions are valid, false otherwise.
 
- 
isXValidpublic boolean isXValid()Checks if the X dimension of the bounding box is valid. The X dimension is considered valid if neither bound contains NaN.- Returns:
- true if the X dimension is valid, false otherwise.
 
- 
isYValidpublic boolean isYValid()Checks if the Y dimension of the bounding box is valid. The Y dimension is considered valid if neither bound contains NaN.- Returns:
- true if the Y dimension is valid, false otherwise.
 
- 
isZValidpublic boolean isZValid()Checks if the Z dimension of the bounding box is valid. The Z dimension is considered valid if none of the bounds contain NaN.- Returns:
- true if the Z dimension is valid, false otherwise.
 
- 
isMValidpublic boolean isMValid()Checks if the M dimension of the bounding box is valid. The M dimension is considered valid if none of the bounds contain NaN.- Returns:
- true if the M dimension is valid, false otherwise.
 
- 
isXYEmptypublic boolean isXYEmpty()Checks if the bounding box is empty in the X / Y dimension.- Returns:
- true if the bounding box is empty, false otherwise.
 
- 
isXEmptypublic boolean isXEmpty()Checks if the bounding box is empty in the X dimension.- Returns:
- true if the X dimension is empty, false otherwise.
 
- 
isYEmptypublic boolean isYEmpty()Checks if the bounding box is empty in the Y dimension.- Returns:
- true if the Y dimension is empty, false otherwise.
 
- 
isZEmptypublic boolean isZEmpty()Checks if the bounding box is empty in the Z dimension.- Returns:
- true if the Z dimension is empty, false otherwise.
 
- 
isMEmptypublic boolean isMEmpty()Checks if the bounding box is empty in the M dimension.- Returns:
- true if the M dimension is empty, false otherwise.
 
- 
mergeExpands this bounding box to include the bounds of another box. After merging, this bounding box will contain both its original extent and the extent of the other bounding box.- Parameters:
- other- the other BoundingBox whose bounds will be merged into this one
 
- 
updatepublic void update(org.locationtech.jts.geom.Geometry geometry) Extends this bounding box to include the spatial extent of the provided geometry. The bounding box coordinates (min/max values for x, y, z, m) will be adjusted to encompass both the current bounds and the geometry's bounds.- Parameters:
- geometry- The geometry whose coordinates will be used to update this bounding box. If null or empty, the method returns without making any changes.
 
- 
resetpublic void reset()Resets the bounding box to its initial state.
- 
copyCreates a copy of the current bounding box.- Returns:
- a new BoundingBox instance with the same values as this one.
 
- 
toString
 
-