|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.geometry.iso.coordinate.EnvelopeImpl
public class EnvelopeImpl
An envlope represents the bounding box of a geometric object.
Regardless to the dimension, the envelope can be encoded by two DirectPosition
s.
Constructor Summary | |
---|---|
EnvelopeImpl(org.opengis.geometry.DirectPosition position)
|
|
EnvelopeImpl(org.opengis.geometry.DirectPosition p0,
org.opengis.geometry.DirectPosition p1)
Constructor |
|
EnvelopeImpl(org.opengis.geometry.Envelope env)
Constructor |
|
EnvelopeImpl(org.opengis.geometry.coordinate.Position position)
|
Method Summary | |
---|---|
void |
add(org.opengis.geometry.DirectPosition p)
|
void |
add(double[] coord)
|
void |
add(EnvelopeImpl env)
|
boolean |
contains(org.opengis.geometry.DirectPosition p)
Verifies whether a DirectPosition2D lays within the envelope or at its border Test OK |
static EnvelopeImpl |
createEnvelope(org.opengis.geometry.DirectPosition[] p)
|
boolean |
equals(org.opengis.geometry.Envelope env)
Compares coordinates between the envelope and another envelope Test OK |
void |
expand(double[] coord)
Expands the envelope with a direct Position |
void |
expand(org.opengis.geometry.Envelope env)
Unions an envelope with an another envelope |
double |
getCenter(int dimension)
|
org.opengis.referencing.crs.CoordinateReferenceSystem |
getCoordinateReferenceSystem()
|
int |
getDimension()
|
double |
getLength(int dimension)
|
org.opengis.geometry.DirectPosition |
getLowerCorner()
|
double |
getMaximum(int dimension)
|
double |
getMedian(int dimension)
|
double |
getMinimum(int dimension)
|
org.opengis.geometry.DirectPosition |
getNECorner()
The North East corner of this Envelope |
DirectPositionImpl |
getNWCorner()
|
DirectPositionImpl |
getNWCornerOld()
The North West corner of this Envelope 2D and 2.5D only! In 2.5D, the z value will be set equal to the z value of the lower corner z value. |
org.opengis.geometry.DirectPosition |
getSECorner()
The South East corner of this Envelope 2D and 2.5D only! In 2.5D, the z value will be set equal to the z value of the lower corner z value. |
double |
getSpan(int dimension)
|
org.opengis.geometry.DirectPosition |
getSWCorner()
The South West corner of this Envelope |
org.opengis.geometry.DirectPosition |
getUpperCorner()
|
boolean |
intersects(org.opengis.geometry.DirectPosition dp)
Verifies wheater the coordinate of a Direct Position intersects with the envelope |
boolean |
intersects(org.opengis.geometry.Envelope other)
Verifies whether another envelope intersects with this envelope |
void |
setValues(org.opengis.geometry.DirectPosition p0,
org.opengis.geometry.DirectPosition p1)
|
void |
setValues(EnvelopeImpl env)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EnvelopeImpl(org.opengis.geometry.Envelope env)
env
- public EnvelopeImpl(org.opengis.geometry.DirectPosition p0, org.opengis.geometry.DirectPosition p1)
p0
- p1
- public EnvelopeImpl(org.opengis.geometry.coordinate.Position position)
p0
- public EnvelopeImpl(org.opengis.geometry.DirectPosition position)
p0
- Method Detail |
---|
public int getDimension()
getDimension
in interface org.opengis.geometry.Envelope
public org.opengis.referencing.crs.CoordinateReferenceSystem getCoordinateReferenceSystem()
getCoordinateReferenceSystem
in interface org.opengis.geometry.Envelope
public double getMinimum(int dimension)
getMinimum
in interface org.opengis.geometry.Envelope
public double getMaximum(int dimension)
getMaximum
in interface org.opengis.geometry.Envelope
public double getCenter(int dimension)
getCenter
in interface org.opengis.geometry.Envelope
public double getMedian(int dimension)
getMedian
in interface org.opengis.geometry.Envelope
public double getLength(int dimension)
getLength
in interface org.opengis.geometry.Envelope
public double getSpan(int dimension)
getSpan
in interface org.opengis.geometry.Envelope
public org.opengis.geometry.DirectPosition getUpperCorner()
getUpperCorner
in interface org.opengis.geometry.Envelope
public org.opengis.geometry.DirectPosition getLowerCorner()
getLowerCorner
in interface org.opengis.geometry.Envelope
public void setValues(org.opengis.geometry.DirectPosition p0, org.opengis.geometry.DirectPosition p1)
p0
- p1
- public void setValues(EnvelopeImpl env)
env
- public static EnvelopeImpl createEnvelope(org.opengis.geometry.DirectPosition[] p)
p
-
public void expand(org.opengis.geometry.Envelope env)
env
- public void expand(double[] coord)
coord
- public java.lang.String toString()
toString
in class java.lang.Object
public void add(double[] coord)
coord
- public void add(org.opengis.geometry.DirectPosition p)
p
- public void add(EnvelopeImpl env)
env
- public boolean equals(org.opengis.geometry.Envelope env)
env
-
public boolean intersects(org.opengis.geometry.Envelope other)
other
-
public boolean intersects(org.opengis.geometry.DirectPosition dp)
dp
-
public org.opengis.geometry.DirectPosition getNECorner()
public org.opengis.geometry.DirectPosition getSWCorner()
public org.opengis.geometry.DirectPosition getSECorner() throws UnsupportedDimensionException
UnsupportedDimensionException
public DirectPositionImpl getNWCornerOld() throws UnsupportedDimensionException
UnsupportedDimensionException
public DirectPositionImpl getNWCorner() throws UnsupportedDimensionException
UnsupportedDimensionException
public boolean contains(org.opengis.geometry.DirectPosition p)
p
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |