|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Geometry
The basic interface for all geometries. it declares the methods that are common to all geometries. this doesn't means for example that all geometries defines a valid boundary but is there asked for they should be able to answer (with null).
-----------------------------------------------------
Method Summary | |
---|---|
boolean |
contains(Geometry gmo)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains another Geometry. |
boolean |
contains(Position position)
The Boolean valued operation "contains" shall return TRUE if this Geometry contains a single point given by a coordinate. |
Geometry |
difference(Geometry gmo)
The "difference" operation shall return the set theoretic difference of this Geometry and the passed Geometry. |
double |
distance(Geometry gmo)
The operation "distance" shall return the distance between this Geometry and another Geometry. |
Boundary |
getBoundary()
returns the boundary of a geometry |
Geometry |
getBuffer(double distance)
The operation "buffer" shall return a Geometry containing all points whose distance from this Geometry is less than or equal to the "distance" passed as a parameter. |
Point |
getCentroid()
The operation "centroid" shall return the mathematical centroid for this Geometry. |
Geometry |
getConvexHull()
The operation "convexHull" shall return a Geometry that represents the convex hull of this Geometry. |
int |
getCoordinateDimension()
The operation "coordinateDimension" shall return the dimension of the coordinates that define this Geometry, which must be the same as the coordinate dimension of the coordinate reference system for this Geometry. |
CoordinateSystem |
getCoordinateSystem()
returns the spatial reference system of a geometry |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Envelope |
getEnvelope()
returns the bounding box of a geometry |
double |
getTolerance()
returns the tolerance value use for topological operations |
Geometry |
intersection(Geometry gmo)
The "intersection" operation shall return the set theoretic intersection of this Geometry and the passed Geometry. |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isEmpty()
returns true if no geometry values resp. points stored within the geometry. |
boolean |
isWithinDistance(Geometry gmo,
double distance)
provide optimized proximity queries within for a distance . calvin added on 10/21/2003 |
void |
setTolerance(double tolerance)
sets tolerance value use for topological operations |
void |
translate(double[] d)
translate a geometry by the submitted values. if the length of d is smaller then the dimension of the geometry only the first d.length'th coordinates will be translated. |
Geometry |
union(Geometry gmo)
The "union" operation shall return the set theoretic union of this Geometry and the passed Geometry. |
Method Detail |
---|
Envelope getEnvelope()
Boundary getBoundary()
int getDimension()
int getCoordinateDimension()
CoordinateSystem getCoordinateSystem()
boolean isEmpty()
double distance(Geometry gmo)
If the geometric objects overlap, or touch, then their distance apart shall be zero. Some current implementations use a "negative" distance for such cases, but the approach is neither consistent between implementations, nor theoretically viable.
void translate(double[] d)
Point getCentroid()
Geometry getConvexHull()
Geometry getBuffer(double distance)
boolean contains(Geometry gmo)
boolean contains(Position position)
boolean intersects(Geometry gmo)
Geometry union(Geometry gmo)
Geometry intersection(Geometry gmo) throws GeometryException
GeometryException
Geometry difference(Geometry gmo)
boolean isWithinDistance(Geometry gmo, double distance)
void setTolerance(double tolerance)
tolerance
- double getTolerance()
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net