- 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 void
add(ESRIPoint point)
Add a point to this bounds.int
compareTo(ESRIBounds bounds)
ESRIBounds
createUnion(ESRIBounds bounds)
Create and replies an union of this bounds and the given bounds.void
ensureMinMax()
Ensure that min and max values are correctly ordered.boolean
equals(Object obj)
double
getCenterM()
Replies the center m.double
getCenterX()
Replies the center x.double
getCenterY()
Replies the center y.double
getCenterZ()
Replies the center z.double
getMaxM()
Replies the max m.double
getMaxX()
Replies the max x.double
getMaxY()
Replies the max y.double
getMaxZ()
Replies the max z.double
getMinM()
Replies the min m.double
getMinX()
Replies the min x.double
getMinY()
Replies the min y.double
getMinZ()
Replies the min z.int
hashCode()
Rectangle2d
toRectangle2d()
Replies the 2D bounds.String
toString()
-
-
-
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:
compareTo
in 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.
-
-