- java.lang.Object
-
- org.arakhne.afc.io.shape.ESRIBounds
-
- All Implemented Interfaces:
Comparable<ESRIBounds>
public class ESRIBounds extends Object implements Comparable<ESRIBounds>
Bounds for a ESRI shape file.xyz are the coordinates of a point, m is an user measure.
The specification of the ESRI Shape file format is described in the July 98 specification document.
- Since:
- 14.0
- Version:
- 17.0 2020-01-04 14:41:52
- Author:
- Stéphane GALLAND, Olivier LAMOTTE
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- shapefile
-
-
Constructor Summary
Constructors Constructor Description ESRIBounds()Constructor.ESRIBounds(double minx, double maxx, double miny, double maxy)Constructor.ESRIBounds(double minx, double maxx, double miny, double maxy, double minz, double maxz, double minm, double maxm)Constructor.ESRIBounds(ESRIBounds bounds)Constructor.ESRIBounds(ESRIPoint point)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(ESRIPoint point)Add a point to this bounds.intcompareTo(ESRIBounds bounds)ESRIBoundscreateUnion(ESRIBounds bounds)Create and replies an union of this bounds and the given bounds.voidensureMinMax()Ensure that min and max values are correctly ordered.booleanequals(Object obj)doublegetCenterM()Replies the center m.doublegetCenterX()Replies the center x.doublegetCenterY()Replies the center y.doublegetCenterZ()Replies the center z.doublegetMaxM()Replies the max m.doublegetMaxX()Replies the max x.doublegetMaxY()Replies the max y.doublegetMaxZ()Replies the max z.doublegetMinM()Replies the min m.doublegetMinX()Replies the min x.doublegetMinY()Replies the min y.doublegetMinZ()Replies the min z.inthashCode()Rectangle2dtoRectangle2d()Replies the 2D bounds.StringtoString()
-
-
-
Constructor Detail
-
ESRIBounds
public ESRIBounds()
Constructor.
-
ESRIBounds
public ESRIBounds(ESRIPoint point)
Constructor.- Parameters:
point- the point to copy.
-
ESRIBounds
public ESRIBounds(double minx, double maxx, double miny, double maxy)Constructor.- Parameters:
minx- the min x.maxx- the max x.miny- the min y.maxy- the max y.
-
ESRIBounds
public ESRIBounds(double minx, double maxx, double miny, double maxy, double minz, double maxz, double minm, double maxm)Constructor.- Parameters:
minx- the min x.maxx- the max x.miny- the min y.maxy- the max y.minz- the min z.maxz- the max z.minm- the min m.maxm- the max m.
-
ESRIBounds
public ESRIBounds(ESRIBounds bounds)
Constructor.- Parameters:
bounds- the bounds to copy.
-
-
Method Detail
-
createUnion
public ESRIBounds createUnion(ESRIBounds bounds)
Create and replies an union of this bounds and the given bounds.- Parameters:
bounds- the bounds to make the union from.- Returns:
- the union of this bounds and the given one.
-
add
public void add(ESRIPoint point)
Add a point to this bounds.- Parameters:
point- the point to add.
-
compareTo
@Pure public int compareTo(ESRIBounds bounds)
- Specified by:
compareToin interfaceComparable<ESRIBounds>
-
getMinX
@Pure public double getMinX()
Replies the min x.- Returns:
- the min x.
-
getCenterX
@Pure public double getCenterX()
Replies the center x.- Returns:
- the center x.
-
getMaxX
@Pure public double getMaxX()
Replies the max x.- Returns:
- the max x.
-
getCenterY
@Pure public double getCenterY()
Replies the center y.- Returns:
- the center y.
-
getMinY
@Pure public double getMinY()
Replies the min y.- Returns:
- the min y.
-
getMaxY
@Pure public double getMaxY()
Replies the max y.- Returns:
- the max y.
-
getMinZ
@Pure public double getMinZ()
Replies the min z.- Returns:
- the min z.
-
getCenterZ
@Pure public double getCenterZ()
Replies the center z.- Returns:
- the center z.
-
getMaxZ
@Pure public double getMaxZ()
Replies the max z.- Returns:
- the max z.
-
getMinM
@Pure public double getMinM()
Replies the min m.- Returns:
- the min m.
-
getCenterM
@Pure public double getCenterM()
Replies the center m.- Returns:
- the center m.
-
getMaxM
@Pure public double getMaxM()
Replies the max m.- Returns:
- the max m.
-
toRectangle2d
@Pure public Rectangle2d toRectangle2d()
Replies the 2D bounds.- Returns:
- the 2D bounds
-
ensureMinMax
public void ensureMinMax()
Ensure that min and max values are correctly ordered.
-
-