|
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 |
public interface Envelope
a boundingbox as child of a Polygon isn't part of the iso19107 spec but it simplifies the geometry handling
Method Summary | |
---|---|
boolean |
contains(Envelope bb)
returns true if all positions of the submitted bounding box are within this bounding box |
boolean |
contains(Position position)
returns true if the bounding box contains the submitted position |
Envelope |
createIntersection(Envelope bb)
returns a new Envelope object representing the intersection of this Envelope with the specified Envelope. |
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 intersects the submitted envelope |
Envelope |
merge(Envelope envelope)
merges two Envelops and returns the minimum envelope containing both. |
Envelope |
translate(double x,
double y)
translate a envelope in the direction defined by the two passed values and retiurns the resulting envelope |
Method Detail |
---|
CoordinateSystem getCoordinateSystem()
double getWidth()
double getHeight()
Position getMin()
Position getMax()
boolean contains(Position position)
position
- the position to find
boolean intersects(Envelope bb)
bb
- another Envelope
boolean contains(Envelope bb)
bb
- another boundingbox
Envelope createIntersection(Envelope bb)
bb
- another boundingbox
Envelope merge(Envelope envelope) throws GeometryException
envelope
- another envelope to merge with this one
GeometryException
- if the coordinatesystems are not equalEnvelope getBuffer(double b)
b
- an extra bound around the Envelope
void expandToContain(Envelope other)
other
- to expand this Envelope.Envelope translate(double x, double y)
x
- coordinatey
- coordinate
Point getCentroid()
|
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