|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.commons.tom.Reference<T>
org.deegree.commons.tom.gml.GMLReference<T>
org.deegree.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(org.deegree.commons.tom.gml.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(org.deegree.commons.uom.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. |
ICRS |
getCoordinateSystem()
Returns the associated spatial reference system. |
Geometry |
getDifference(Geometry geometry)
Returns the set-theoretic difference of this and the passed Geometry. |
org.deegree.commons.uom.Measure |
getDistance(Geometry geometry,
org.deegree.commons.uom.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. |
org.deegree.commons.tom.gml.GMLStdProps |
getGMLProperties()
|
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,
org.deegree.commons.uom.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 |
isSFSCompliant()
Returns whether this geometry complies with the Simple Feature Specification (SFS). |
boolean |
isWithin(Geometry geometry)
tests whether the value of a geometric is topological located within this geometry. |
boolean |
isWithinDistance(Geometry geometry,
org.deegree.commons.uom.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(ICRS crs)
Sets the associated spatial reference system. |
void |
setGMLProperties(org.deegree.commons.tom.gml.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.commons.tom.Reference |
|---|
getId, getReferencedObject, getURI, isLocal, isResolved, resolve |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.geometry.Geometry |
|---|
getId |
| Constructor Detail |
|---|
public GeometryReference(org.deegree.commons.tom.gml.GMLReferenceResolver resolver,
String uri,
String baseURL)
GeometryReference instance.
resolver - used for resolving the reference, must not be nulluri - the geometry's uri, must not be nullbaseURL - 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 Geometrygeometry - the Geometry to test this Geometry against
Geometry contains geometrypublic boolean crosses(Geometry geometry)
Geometry
crosses in interface Geometrygeometry - the Geometry to test this Geometry against
Geometry crosses geometrypublic Geometry getDifference(Geometry geometry)
GeometryGeometry.
getDifference in interface Geometrygeometry - other geometry, must not be null
null (empty set)
public org.deegree.commons.uom.Measure getDistance(Geometry geometry,
org.deegree.commons.uom.Unit requestedUnits)
Geometry
getDistance in interface Geometrygeometry - second geometryrequestedUnits - unit of the
public boolean equals(Geometry geometry)
Geometry
equals in interface Geometrygeometry - the Geometry to test this Geometry against
Geometry is equal to geometrypublic Geometry getBuffer(org.deegree.commons.uom.Measure distance)
GeometryGeometry that contains all points with a distance from this Geometry that is less than or
equal to the specified distance.
getBuffer in interface Geometrypublic Geometry getConvexHull()
Geometry
getConvexHull in interface Geometrypublic int getCoordinateDimension()
Geometry
getCoordinateDimension in interface Geometrypublic ICRS getCoordinateSystem()
Geometry
getCoordinateSystem in interface Geometrypublic Envelope getEnvelope()
Geometry
getEnvelope in interface Geometrypublic Geometry.GeometryType getGeometryType()
Geometry
getGeometryType in interface Geometrypublic PrecisionModel getPrecision()
GeometryPrecisionModel of the geometry.
getPrecision in interface Geometrypublic Geometry getIntersection(Geometry geometry)
GeometryGeometry.
getIntersection in interface Geometrygeometry - other geometry, must not be null
null (empty set)public boolean intersects(Geometry geometry)
Geometry
intersects in interface Geometrygeometry - the Geometry to test this Geometry against
Geometry intersects geometrypublic boolean isDisjoint(Geometry geometry)
Geometry
isDisjoint in interface Geometrygeometry - the Geometry to test this Geometry against
Geometry is disjoint from geometrypublic boolean overlaps(Geometry geometry)
Geometry
overlaps in interface Geometrygeometry - the Geometry to test this Geometry against
Geometry overlaps geometrypublic boolean touches(Geometry geometry)
Geometry
touches in interface Geometrygeometry - the Geometry to test this Geometry against
Geometry touches geometry
public boolean isBeyond(Geometry geometry,
org.deegree.commons.uom.Measure distance)
Geometry
isBeyond in interface Geometrygeometry - second geometry
distancepublic boolean isWithin(Geometry geometry)
GeometryGeometry.contains(Geometry) method
isWithin in interface Geometry
public boolean isWithinDistance(Geometry geometry,
org.deegree.commons.uom.Measure distance)
Geometry
isWithinDistance in interface Geometrygeometry - second geometry
distancepublic Geometry getUnion(Geometry geometry)
GeometryGeometry.
getUnion in interface Geometrygeometry - other geometry, must not be null
public org.deegree.commons.tom.gml.GMLStdProps getGMLProperties()
getGMLProperties in interface org.deegree.commons.tom.gml.GMLObjectgetGMLProperties in class org.deegree.commons.tom.gml.GMLReference<T extends Geometry>public void setGMLProperties(org.deegree.commons.tom.gml.GMLStdProps standardProps)
Geometrygml:name).
setGMLProperties in interface GeometrystandardProps - properties to be attachedpublic Point getCentroid()
Geometry
getCentroid in interface GeometryPoint that is the centroid of this geometrypublic void setCoordinateSystem(ICRS crs)
Geometry
setCoordinateSystem in interface Geometrycrs - spatial reference system, may be nullpublic void setId(String id)
Geometry
setId in interface Geometryid - id of the geometrypublic void setPrecision(PrecisionModel pm)
GeometryPrecisionModel of the geometry.
setPrecision in interface Geometrypm - the precision model to setpublic boolean isSFSCompliant()
Geometry
isSFSCompliant in interface Geometrytrue, if this geometry complies with the SFS, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||