deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.model.spatialschema
Interface Envelope

All Known Implementing Classes:
EnvelopeImpl, LayerBoundingBox

public interface Envelope

a boundingbox as child of a Polygon isn't part of the iso19107 spec but it simplifies the geometry handling

Since:
2.0
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

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

getCoordinateSystem

CoordinateSystem getCoordinateSystem()
returns the spatial reference system of a geometry

Returns:
the spatial reference system of a geometry

getWidth

double getWidth()
returns the width of bounding box

Returns:
the width of bounding box

getHeight

double getHeight()
returns the height of bounding box

Returns:
the height of bounding box

getMin

Position getMin()
returns the minimum coordinates of bounding box

Returns:
the minimum coordinates of bounding box

getMax

Position getMax()
returns the maximum coordinates of bounding box

Returns:
the maximum coordinates of bounding box

contains

boolean contains(Position position)
returns true if the bounding box contains the submitted position

Parameters:
position - the position to find
Returns:
true if the bounding box contains the submitted position

intersects

boolean intersects(Envelope bb)
returns true if this envelope intersects the submitted envelope

Parameters:
bb - another Envelope
Returns:
true if this envelope intersects the submitted envelope

contains

boolean contains(Envelope bb)
returns true if all positions of the submitted bounding box are within this bounding box

Parameters:
bb - another boundingbox
Returns:
true if all positions of the submitted bounding box are within this bounding box

createIntersection

Envelope createIntersection(Envelope bb)
returns a new Envelope object representing the intersection of this Envelope with the specified Envelope.

Parameters:
bb - another boundingbox
Returns:
a new Envelope object representing the intersection of this Envelope with the specified Envelope.

merge

Envelope merge(Envelope envelope)
               throws GeometryException
merges two Envelops and returns the minimum envelope containing both.

Parameters:
envelope - another envelope to merge with this one
Returns:
the minimum envelope containing both.
Throws:
GeometryException - if the coordinatesystems are not equal

getBuffer

Envelope getBuffer(double b)
creates a new envelope

Parameters:
b - an extra bound around the Envelope
Returns:
a new Envelope

expandToContain

void expandToContain(Envelope other)
ensures that the passed Envepole is contained within this.Envelope

Parameters:
other - to expand this Envelope.

translate

Envelope translate(double x,
                   double y)
translate a envelope in the direction defined by the two passed values and retiurns the resulting envelope

Parameters:
x - coordinate
y - coordinate
Returns:
the resulting translated Envelope

getCentroid

Point getCentroid()
returns the centroid of an Envelope

Returns:
centroid of an Envelope

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org