Modifier and Type | Field and Description |
---|---|
protected String |
crs |
protected double |
maxX |
protected double |
maxY |
protected double |
maxZ |
protected double |
minX |
protected double |
minY |
protected double |
minZ |
Constructor and Description |
---|
SpatialExtent() |
Modifier and Type | Method and Description |
---|---|
void |
add(SpatialExtent bbox)
Combines given extent with this extent
by computing the smallest rectangular
extent that contains both of them.
|
protected void |
checkCrs(SpatialExtent bbox)
Checks if extents crs are compatible
|
boolean |
contains(SpatialExtent bbox)
Finds out if given extent is included in this one.
|
SpatialExtent |
copy() |
boolean |
equals(Object obj) |
double[] |
getCenter() |
String |
getCrs() |
double |
getDiagonalDistance() |
double |
getMaxDistance() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMaxZ() |
double |
getMinX() |
double |
getMinY() |
double |
getMinZ() |
double |
getSizeX() |
double |
getSizeY() |
double |
getSizeZ() |
boolean |
intersects(SpatialExtent bbox)
Finds out if this bbox intersects the given bbox.
|
boolean |
isNull() |
void |
nullify() |
void |
resizeToContain(double x,
double y,
double z)
Resize spatial extent so that it contains the given 3D point
Point x,y,z coordinates must be in same Crs as SpatialExtent
|
void |
setCrs(String crs) |
void |
setMaxX(double maxX) |
void |
setMaxY(double maxY) |
void |
setMaxZ(double maxZ) |
void |
setMinX(double minX) |
void |
setMinY(double minY) |
void |
setMinZ(double minZ) |
String |
toString() |
protected String crs
protected double minX
protected double maxX
protected double minY
protected double maxY
protected double minZ
protected double maxZ
public SpatialExtent copy()
public double[] getCenter()
public double getDiagonalDistance()
public double getMaxDistance()
public double getSizeX()
public double getSizeY()
public double getSizeZ()
public boolean isNull()
public void nullify()
public void resizeToContain(double x, double y, double z)
x
- y
- z
- public void add(SpatialExtent bbox)
bbox
- public boolean intersects(SpatialExtent bbox)
bbox
- public boolean contains(SpatialExtent bbox)
bbox
- protected void checkCrs(SpatialExtent bbox)
bbox
- public String getCrs()
public void setCrs(String crs)
public double getMaxX()
public void setMaxX(double maxX)
public double getMaxY()
public void setMaxY(double maxY)
public double getMaxZ()
public void setMaxZ(double maxZ)
public double getMinX()
public void setMinX(double minX)
public double getMinY()
public void setMinY(double minY)
public double getMinZ()
public void setMinZ(double minZ)
Copyright © 2016 Sensia Software LLC. All rights reserved.