|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectCRSEnvelope
public class CRSEnvelope
A pair of coordinates and a reference system that represents a section of the Earth
Field Summary | |
---|---|
protected double |
maxX
|
protected double |
maxY
|
protected double |
minX
|
protected double |
minY
|
Constructor Summary | |
---|---|
CRSEnvelope()
Construct an empty BoundingBox |
|
CRSEnvelope(Envelope envelope)
|
|
CRSEnvelope(String epsgCode,
double minX,
double minY,
double maxX,
double maxY)
Create a bounding box with the specified properties |
Method Summary | |
---|---|
double |
getCenter(int dimension)
|
CoordinateReferenceSystem |
getCoordinateReferenceSystem()
Returns the coordinate reference system for this envelope (if known). |
int |
getDimension()
|
String |
getEPSGCode()
|
double |
getLength(int dimension)
|
DirectPosition |
getLowerCorner()
|
double |
getMaximum(int dimension)
|
double |
getMaxX()
The maxX value is the higher X coordinate value |
double |
getMaxY()
The maxY value is the higher Y coordinate value |
double |
getMedian(int dimension)
|
double |
getMinimum(int dimension)
|
double |
getMinX()
The minX value is the lower X coordinate value |
double |
getMinY()
The minY value is the lower Y coordinate value |
double |
getSpan(int dimension)
|
String |
getSRSName()
The CRS is bounding box's Coordinate Reference System |
DirectPosition |
getUpperCorner()
|
void |
setEPSGCode(String epsgCode)
|
void |
setMaxX(double maxX)
The maxX value is the higher X coordinate value |
void |
setMaxY(double maxY)
The maxY value is the higher Y coordinate value |
void |
setMinX(double minX)
The minX value is the lower X coordinate value |
void |
setMinY(double minY)
The minY value is the lower Y coordinate value |
void |
setSRSName(String epsgCode)
The CRS is bounding box's Coordinate Reference System |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double minX
protected double minY
protected double maxX
protected double maxY
Constructor Detail |
---|
public CRSEnvelope()
public CRSEnvelope(String epsgCode, double minX, double minY, double maxX, double maxY)
epsgCode
- The Coordinate Reference System this bounding box is inminX
- minY
- maxX
- maxY
- public CRSEnvelope(Envelope envelope)
Method Detail |
---|
public CoordinateReferenceSystem getCoordinateReferenceSystem()
null
getCoordinateReferenceSystem
in interface Envelope
public String getSRSName()
public void setEPSGCode(String epsgCode)
setSRSName
public String getEPSGCode()
getSRSName
public void setSRSName(String epsgCode)
srsName
- The SRSName for this envelope; usually an EPSG codepublic int getDimension()
getDimension
in interface Envelope
public double getMinimum(int dimension)
getMinimum
in interface Envelope
public double getMaximum(int dimension)
getMaximum
in interface Envelope
public double getCenter(int dimension)
getCenter
in interface Envelope
public double getMedian(int dimension)
getMedian
in interface Envelope
public double getLength(int dimension)
getLength
in interface Envelope
public double getSpan(int dimension)
getSpan
in interface Envelope
public DirectPosition getUpperCorner()
getUpperCorner
in interface Envelope
public DirectPosition getLowerCorner()
getLowerCorner
in interface Envelope
public double getMaxX()
public void setMaxX(double maxX)
maxX
- the new value for maxX. Should be greater than minX.public double getMaxY()
public void setMaxY(double maxY)
maxY
- the new value for maxY. Should be greater than minY.public double getMinX()
public void setMinX(double minX)
minX
- the new value for minX. Should be less than maxX.public double getMinY()
public void setMinY(double minY)
minY
- the new value for minY. Should be less than maxY.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |