|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.gml.GMLReference<T> org.deegree.gml.geometry.refs.GeometryReference<T>
T
- public class GeometryReference<T extends Geometry>
Represents a reference to the GML representation of a geometry, which is usually expressed using an
xlink:href
attribute in GML (may be document-local or remote).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.geometry.Geometry |
---|
Geometry.GeometryType |
Constructor Summary | |
---|---|
GeometryReference(GMLReferenceResolver resolver,
String uri,
String baseURL)
Creates a new GeometryReference instance. |
Method Summary | |
---|---|
boolean |
contains(Geometry geometry)
Tests whether this geometry contains the specified geometry. |
boolean |
crosses(Geometry geometry)
Tests whether this geometry crosses the specified geometry. |
boolean |
equals(Geometry geometry)
Tests whether this geometry is equal to the specified geometry. |
Geometry |
getBuffer(Measure distance)
Return a new Geometry that contains all points with a distance from this Geometry that is less than or
equal to the specified distance. |
Point |
getCentroid()
Returns the centroid of the geometry. |
Geometry |
getConvexHull()
Returns the convex hull of the geometry. |
int |
getCoordinateDimension()
Returns the coordinate dimension, i.e. the dimension of the space that the geometry is embedded in. |
CRS |
getCoordinateSystem()
Returns the associated spatial reference system. |
Geometry |
getDifference(Geometry geometry)
Returns the set-theoretic difference of this and the passed Geometry . |
Measure |
getDistance(Geometry geometry,
Unit requestedUnits)
Returns the minimum distance between this and the specified geometry. |
Envelope |
getEnvelope()
Returns the minimal bounding box of the geometry. |
Geometry.GeometryType |
getGeometryType()
Returns the type of geometry. |
GMLStdProps |
getGMLProperties()
Returns the standard GML properties (e.g. |
String |
getId()
Returns the id of the object. |
Geometry |
getIntersection(Geometry geometry)
Returns the set-theoretic intersection of this and the passed Geometry . |
PrecisionModel |
getPrecision()
Returns the PrecisionModel of the geometry. |
Geometry |
getUnion(Geometry geometry)
Returns the set-theoretic union of this and the passed Geometry . |
boolean |
intersects(Geometry geometry)
Tests whether this geometry intersects the specified geometry. |
boolean |
isBeyond(Geometry geometry,
Measure distance)
Tests whether this geometry is beyond a specified distance of a second geometry. |
boolean |
isDisjoint(Geometry geometry)
Tests whether this geometry is disjoint from the specified geometry. |
boolean |
isWithin(Geometry geometry)
tests whether the value of a geometric is topological located within this geometry. |
boolean |
isWithinDistance(Geometry geometry,
Measure distance)
Tests whether this geometry is within a specified distance of a second geometry. |
boolean |
overlaps(Geometry geometry)
Tests whether this geometry overlaps the specified geometry. |
void |
setCoordinateSystem(CRS crs)
Sets the associated spatial reference system. |
void |
setGMLProperties(GMLStdProps standardProps)
Sets the attached properties (e.g. |
void |
setId(String id)
Sets the id of the geometry. |
void |
setPrecision(PrecisionModel pm)
Sets the PrecisionModel of the geometry. |
boolean |
touches(Geometry geometry)
Tests whether this geometry touches the specified geometry. |
Methods inherited from class org.deegree.gml.GMLReference |
---|
getReferencedObject, getURI, isLocal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GeometryReference(GMLReferenceResolver resolver, String uri, String baseURL)
GeometryReference
instance.
resolver
- used for resolving the reference, must not be null
uri
- the geometry's uri, must not be null
baseURL
- base URL for resolving the uri, may be null
(no resolving of relative URLs)Method Detail |
---|
public boolean contains(Geometry geometry)
Geometry
contains
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
contains geometry
public boolean crosses(Geometry geometry)
Geometry
crosses
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
crosses geometry
public Geometry getDifference(Geometry geometry)
Geometry
Geometry
.
getDifference
in interface Geometry
geometry
- other geometry, must not be null
null
(empty set)public Measure getDistance(Geometry geometry, Unit requestedUnits)
Geometry
getDistance
in interface Geometry
geometry
- second geometryrequestedUnits
- unit of the
public boolean equals(Geometry geometry)
Geometry
equals
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
is equal to geometry
public Geometry getBuffer(Measure distance)
Geometry
Geometry
that contains all points with a distance from this Geometry that is less than or
equal to the specified distance.
getBuffer
in interface Geometry
public Geometry getConvexHull()
Geometry
getConvexHull
in interface Geometry
public int getCoordinateDimension()
Geometry
getCoordinateDimension
in interface Geometry
public CRS getCoordinateSystem()
Geometry
getCoordinateSystem
in interface Geometry
public Envelope getEnvelope()
Geometry
getEnvelope
in interface Geometry
public Geometry.GeometryType getGeometryType()
Geometry
getGeometryType
in interface Geometry
public String getId()
GMLObject
getId
in interface Geometry
getId
in interface GMLObject
getId
in class GMLReference<T extends Geometry>
null
if it doesn't have an idpublic PrecisionModel getPrecision()
Geometry
PrecisionModel
of the geometry.
getPrecision
in interface Geometry
public Geometry getIntersection(Geometry geometry)
Geometry
Geometry
.
getIntersection
in interface Geometry
geometry
- other geometry, must not be null
null
(empty set)public boolean intersects(Geometry geometry)
Geometry
intersects
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
intersects geometry
public boolean isDisjoint(Geometry geometry)
Geometry
isDisjoint
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
is disjoint from geometry
public boolean overlaps(Geometry geometry)
Geometry
overlaps
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
overlaps geometry
public boolean touches(Geometry geometry)
Geometry
touches
in interface Geometry
geometry
- the Geometry
to test this Geometry
against
Geometry
touches geometry
public boolean isBeyond(Geometry geometry, Measure distance)
Geometry
isBeyond
in interface Geometry
geometry
- second geometry
distance
public boolean isWithin(Geometry geometry)
Geometry
Geometry.contains(Geometry)
method
isWithin
in interface Geometry
public boolean isWithinDistance(Geometry geometry, Measure distance)
Geometry
isWithinDistance
in interface Geometry
geometry
- second geometry
distance
public Geometry getUnion(Geometry geometry)
Geometry
Geometry
.
getUnion
in interface Geometry
geometry
- other geometry, must not be null
public GMLStdProps getGMLProperties()
GMLObject
gml:name
).
getGMLProperties
in interface GMLObject
getGMLProperties
in class GMLReference<T extends Geometry>
public void setGMLProperties(GMLStdProps standardProps)
Geometry
gml:name
).
setGMLProperties
in interface Geometry
standardProps
- properties to be attachedpublic Point getCentroid()
Geometry
getCentroid
in interface Geometry
Point
that is the centroid of this geometrypublic void setCoordinateSystem(CRS crs)
Geometry
setCoordinateSystem
in interface Geometry
crs
- spatial reference system, may be nullpublic void setId(String id)
Geometry
setId
in interface Geometry
id
- id of the geometrypublic void setPrecision(PrecisionModel pm)
Geometry
PrecisionModel
of the geometry.
setPrecision
in interface Geometry
pm
- the precision model to set
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |