|
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 | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.GeometryImpl
org.deegree.model.spatialschema.PrimitiveImpl
org.deegree.model.spatialschema.OrientablePrimitiveImpl
org.deegree.model.spatialschema.OrientableCurveImpl
org.deegree.model.spatialschema.RingImpl
public class RingImpl
default implementation of the Ring interface of the
| Field Summary |
|---|
| Fields inherited from class org.deegree.model.spatialschema.OrientablePrimitiveImpl |
|---|
orientation |
| Fields inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
boundary, centroid, convexHull, crs, empty, envelope, mute, valid |
| Constructor Summary | |
|---|---|
RingImpl(CurveSegment[] segments,
CoordinateSystem crs,
char orientation)
Constructor, with curve segments, CoordinateSystem and Orientation |
|
RingImpl(Position[] points,
CoordinateSystem crs)
Constructor, with an array and CoordinateSystem |
|
RingImpl(Position[] points,
CoordinateSystem crs,
char orientation)
Constructor, with an array, CoordinateSystem and Orientation |
|
| Method Summary | |
|---|---|
protected void |
calculateCentroid()
calculates the centroid of the ring |
protected void |
calculateParam()
calculates the centroid and the envelope of the ring |
Object |
clone()
returns a shallow copy of the geometry |
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. |
boolean |
equals(Object other)
checks if this curve segment is completly equal to the submitted geometry |
CurveSegment |
getAsCurveSegment()
returns the Ring as one CurveSegment |
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. |
CurveBoundary |
getCurveBoundary()
returns the CurveBoundary of the Ring. |
CurveSegment[] |
getCurveSegments()
returns the Ring as a CurveSegments |
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Position[] |
getPositions()
gets the Ring as a Array of positions. |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isCycle()
Ring must be closed, so isCycle returns TRUE. |
boolean |
isSimple()
Ring is a PrimitiveBoundary, so isSimple returns TRUE. |
protected void |
setPositions(Position[][] positions)
sets the Ring as a ArrayList of points |
String |
toString()
|
| Methods inherited from class org.deegree.model.spatialschema.OrientablePrimitiveImpl |
|---|
getOrientation, setOrientation |
| Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
|---|
difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setTolerance, setValid, translate, union |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.deegree.model.spatialschema.OrientablePrimitive |
|---|
getOrientation, setOrientation |
| Methods inherited from interface org.deegree.model.spatialschema.Geometry |
|---|
difference, distance, getBoundary, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isEmpty, isWithinDistance, setTolerance, translate, union |
| Constructor Detail |
|---|
public RingImpl(Position[] points,
CoordinateSystem crs)
throws GeometryException
points - crs -
GeometryException
public RingImpl(Position[] points,
CoordinateSystem crs,
char orientation)
throws GeometryException
points - crs - orientation -
GeometryException
public RingImpl(CurveSegment[] segments,
CoordinateSystem crs,
char orientation)
throws GeometryException
segments - crs - orientation -
GeometryException| Method Detail |
|---|
public boolean isCycle()
isCycle in interface Ringpublic boolean isSimple()
isSimple in interface Ringpublic int getDimension()
getDimension in interface Geometrypublic int getCoordinateDimension()
getCoordinateDimension in interface Geometrypublic Position[] getPositions()
getPositions in interface Ring
protected void setPositions(Position[][] positions)
throws GeometryException
GeometryException
public CurveSegment getAsCurveSegment()
throws GeometryException
getAsCurveSegment in interface RingGeometryExceptionpublic CurveSegment[] getCurveSegments()
getCurveSegments in interface Ringpublic CurveBoundary getCurveBoundary()
getCurveBoundary in interface OrientableCurvepublic boolean equals(Object other)
equals in class GeometryImplother - object to compare to
public Object clone()
clone in class GeometryImplpublic boolean intersects(Geometry gmo)
intersects in interface Geometryintersects in class GeometryImplgmo -
public boolean contains(Geometry gmo)
At the moment the operation just works with point geometries
contains in interface Geometrycontains in class GeometryImplgmo - the Geometry to test (whether is is contained)
public boolean contains(Position position)
contains in interface Geometrycontains in class GeometryImplposition -
protected void calculateCentroid()
protected void calculateParam()
calculateParam in class GeometryImplpublic String toString()
toString in class GeometryImpl
|
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