|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
|---|---|
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(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. |
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 Object clone()
clone in class Objectpublic CoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface Envelopepublic Position getMin()
getMin in interface Envelopepublic Position getMax()
getMax in interface Envelopepublic double getWidth()
getWidth in interface Envelopepublic double getHeight()
getHeight in interface Envelopepublic boolean contains(Position point)
contains in interface Envelopepoint - the position to find
public boolean intersects(Envelope bb)
intersects in interface Envelopebb - another Envelope
public boolean contains(Envelope bb)
contains in interface Envelopebb - another boundingbox
public Envelope createIntersection(Envelope bb)
createIntersection in interface Envelopebb - the Envelope to be intersected with this Envelope
public boolean equals(Object other)
equals in class Objectpublic Envelope getBuffer(double b)
Envelope
getBuffer in interface Envelopeb - an extra bound around the Envelope
public Envelope merge(Envelope envelope)
throws GeometryException
Envelope
merge in interface Envelopeenvelope - 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 Envelopeother -
public Envelope translate(double x,
double y)
translate in interface Envelopex - y -
public Point getCentroid()
getCentroid in interface Envelopepublic String toString()
toString in class Object
|
deegree 2.3 (2010/04/09 10:10 build-4-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