|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.spatialschema.EnvelopeImpl
public class EnvelopeImpl
a boundingbox as child of a Polygon isn't part of the iso19107 spec but it simplifies the geometry handling
------------------------------------------------------------
Field Summary | |
---|---|
protected CoordinateSystem |
crs
|
protected Position |
max
|
protected Position |
min
|
Constructor Summary | |
---|---|
protected |
EnvelopeImpl()
Creates a new EnvelopeImpl object. |
protected |
EnvelopeImpl(Position min,
Position max)
Creates a new EnvelopeImpl object. |
protected |
EnvelopeImpl(Position min,
Position max,
CoordinateSystem crs)
Creates a new EnvelopeImpl object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
contains(Envelope bb)
returns true if all points of the submitted bounding box are within this bounding box |
boolean |
contains(Position point)
returns true if the bounding box conatins the specified Point |
Envelope |
createIntersection(Envelope bb)
returns a new Envelope object representing the intersection of this Envelope with the specified Envelope. * Note: If there is no intersection at all Envelope will be null. |
boolean |
equals(java.lang.Object other)
checks if this point is completly equal to the submitted geometry |
void |
expandToContain(Envelope other)
ensures that the passed Envepole is contained within this.Envelope |
Envelope |
getBuffer(double b)
creates a new envelope |
Point |
getCentroid()
returns the centroid of an Envelope |
CoordinateSystem |
getCoordinateSystem()
returns the spatial reference system of a geometry |
double |
getHeight()
returns the height of bounding box |
Position |
getMax()
returns the maximum coordinates of bounding box |
Position |
getMin()
returns the minimum coordinates of bounding box |
double |
getWidth()
returns the width of bounding box |
boolean |
intersects(Envelope bb)
returns true if this envelope and the submitted intersects |
Envelope |
merge(Envelope envelope)
merges two Envelops and returns the minimum envelope containing both. |
java.lang.String |
toString()
|
Envelope |
translate(double x,
double y)
translate a envelope in the direction defined by the two passed values and retiurns the resulting envelope |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Position max
protected Position min
protected CoordinateSystem crs
Constructor Detail |
---|
protected EnvelopeImpl()
protected EnvelopeImpl(Position min, Position max)
min
- max
- protected EnvelopeImpl(Position min, Position max, CoordinateSystem crs)
min
- max
- crs
- Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public CoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface Envelope
public Position getMin()
getMin
in interface Envelope
public Position getMax()
getMax
in interface Envelope
public double getWidth()
getWidth
in interface Envelope
public double getHeight()
getHeight
in interface Envelope
public boolean contains(Position point)
contains
in interface Envelope
point
- the position to find
public boolean intersects(Envelope bb)
intersects
in interface Envelope
bb
- another Envelope
public boolean contains(Envelope bb)
contains
in interface Envelope
bb
- another boundingbox
public Envelope createIntersection(Envelope bb)
createIntersection
in interface Envelope
bb
- the Envelope to be intersected with this Envelope
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public Envelope getBuffer(double b)
Envelope
getBuffer
in interface Envelope
b
- an extra bound around the Envelope
public Envelope merge(Envelope envelope) throws GeometryException
Envelope
merge
in interface Envelope
envelope
- another envelope to merge with this one
GeometryException
- if the coordinatesystems are not equalEnvelope.merge(org.deegree.model.spatialschema.Envelope)
public void expandToContain(Envelope other)
expandToContain
in interface Envelope
other
- public Envelope translate(double x, double y)
translate
in interface Envelope
x
- y
-
public Point getCentroid()
getCentroid
in interface Envelope
public java.lang.String toString()
toString
in class java.lang.Object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org