|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.geometry.standard.AbstractDefaultGeometry org.deegree.geometry.standard.DefaultEnvelope
public class DefaultEnvelope
Default implementation of Envelope
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
---|
Geometry.GeometryType |
Field Summary |
---|
Fields inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
crs, env, id, jtsFactory, jtsGeometry, pm |
Constructor Summary | |
---|---|
DefaultEnvelope(Point min,
Point max)
Creates a new DefaultEnvelope instance with no id, crs and precisionmodel. |
|
DefaultEnvelope(String id,
ICRS crs,
PrecisionModel pm,
Point min,
Point max)
Creates a new DefaultEnvelope instance from the given parameters. |
Method Summary | |
---|---|
protected com.vividsolutions.jts.geom.Polygon |
buildJTSGeometry()
|
Point |
getCentroid()
Returns the centroid of the geometry. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
Envelope |
getEnvelope()
Returns the minimal bounding box of the geometry. |
Geometry.GeometryType |
getGeometryType()
Must always return Geometry.GeometryType.ENVELOPE . |
Point |
getMax()
Returns the envelope's maximum coordinate |
Point |
getMin()
Returns the envelope's minimum coordinate. |
double |
getSpan(int dim)
Returns the envelope's span of the specified dimension (in units of the associated coordinate system). |
double |
getSpan0()
Returns the envelope's span of the first dimension (in units of the associated coordinate system). |
double |
getSpan1()
Returns the envelope's span of the second dimension (in units of the associated coordinate system). |
boolean |
intersects(Geometry other)
Tests whether this geometry intersects the specified geometry. |
Envelope |
merge(Envelope other)
Merges this envelope with another envelope into a new one. |
String |
toString()
|
Methods inherited from class org.deegree.geometry.standard.AbstractDefaultGeometry |
---|
contains, createFromJTS, crosses, equals, getAsDefaultGeometry, getBuffer, getConvexHull, getCoordinateSystem, getDifference, getDistance, getGMLProperties, getId, getIntersection, getJTSGeometry, getPrecision, getUnion, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.geometry.Geometry |
---|
contains, crosses, equals, getBuffer, getConvexHull, getCoordinateSystem, getDifference, getDistance, getId, getIntersection, getPrecision, getUnion, isBeyond, isDisjoint, isSFSCompliant, isWithin, isWithinDistance, overlaps, setCoordinateSystem, setGMLProperties, setId, setPrecision, touches |
Methods inherited from interface org.deegree.commons.tom.gml.GMLObject |
---|
getGMLProperties |
Constructor Detail |
---|
public DefaultEnvelope(Point min, Point max)
DefaultEnvelope
instance with no id, crs and precisionmodel.
min
- max
- public DefaultEnvelope(String id, ICRS crs, PrecisionModel pm, Point min, Point max)
DefaultEnvelope
instance from the given parameters.
id
- identifier, may be nullcrs
- coordinate reference system, may be nullpm
- precision model, may be nullmin
- max
- Method Detail |
---|
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public Geometry.GeometryType getGeometryType()
Envelope
Geometry.GeometryType.ENVELOPE
.
getGeometryType
in interface Envelope
getGeometryType
in interface Geometry
Geometry.GeometryType.ENVELOPE
.public Point getMax()
Envelope
getMax
in interface Envelope
public Point getMin()
Envelope
getMin
in interface Envelope
public double getSpan0()
Envelope
getSpan0
in interface Envelope
public double getSpan1()
Envelope
getSpan1
in interface Envelope
public double getSpan(int dim)
Envelope
getSpan
in interface Envelope
dim
- index of the span to be returned
public Envelope merge(Envelope other)
Envelope
merge
in interface Envelope
public Envelope getEnvelope()
Geometry
getEnvelope
in interface Geometry
getEnvelope
in class AbstractDefaultGeometry
public Point getCentroid()
Geometry
getCentroid
in interface Geometry
getCentroid
in class AbstractDefaultGeometry
Point
that is the centroid of this geometryprotected com.vividsolutions.jts.geom.Polygon buildJTSGeometry()
buildJTSGeometry
in class AbstractDefaultGeometry
public String toString()
toString
in class AbstractDefaultGeometry
public boolean intersects(Geometry other)
Geometry
intersects
in interface Geometry
intersects
in class AbstractDefaultGeometry
other
- the Geometry
to test this Geometry
against
Geometry
intersects geometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |