|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.spatialschema.GeometryImpl org.deegree.model.spatialschema.PrimitiveImpl org.deegree.model.spatialschema.OrientablePrimitiveImpl org.deegree.model.spatialschema.OrientableCurveImpl org.deegree.model.spatialschema.CurveImpl
public class CurveImpl
default implementation of
Curve
,
Serialized FormField Summary | |
---|---|
protected java.util.ArrayList<CurveSegment> |
segments
|
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 |
Fields inherited from interface org.deegree.model.spatialschema.Geometry |
---|
BUFFER_CAP_BUTT, BUFFER_CAP_ROUND, BUFFER_CAP_SQUARE |
Constructor Summary | |
---|---|
protected |
CurveImpl(char orientation,
CurveSegment[] segments)
initialize the curve by submitting a spatial reference system, an array of curve segments and the orientation of the curve |
protected |
CurveImpl(CurveSegment segments)
initialize the curve by submitting a spatial reference system and an array of curve segments. the orientation of the curve is '+' |
protected |
CurveImpl(CurveSegment[] segments)
initialize the curve by submitting a spatial reference system and an array of curve segments. the orientation of the curve is '+' |
protected |
CurveImpl(CurveSegment[] segments,
CoordinateSystem crs)
initialize the curve by submitting a spatial reference system and an array of curve segments. the orientation of the curve is '+' |
Method Summary | |
---|---|
protected void |
calculateParam()
recalculates internal parameters |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object other)
checks if this curve is completely equal to the submitted geometry |
LineString |
getAsLineString()
returns the curve as LineString. if there isn't a curve segment within the curve null will be returned |
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 boundary of the curve |
CurveSegment |
getCurveSegmentAt(int index)
returns the curve segment at the submitted index |
CurveSegment[] |
getCurveSegments()
|
int |
getDimension()
The operation "dimension" shall return the inherent dimension of this Geometry, which shall be less than or equal to the coordinate dimension. |
Point |
getEndPoint()
returns the last point of the curve.if the curve doesn't contain a segment or the last segment doesn't contain a point null will be returned |
double |
getLength()
returns the length of the curve in units of the related spatial reference system |
int |
getNumberOfCurveSegments()
returns the number of segments building the curve |
Point |
getStartPoint()
returns the first point of the curve. if the curve doesn't contain a segment or the first segment doesn't contain a point null will be returned |
boolean |
intersects(Geometry gmo)
The Boolean valued operation "intersects" shall return TRUE if this Geometry intersects another Geometry. |
boolean |
isEmpty()
|
java.lang.String |
toString()
|
void |
translate(double[] d)
translate each point of the curve with the values of the submitted double array. |
Geometry |
union(Geometry other)
The "union" operation shall return the set theoretic union of this Geometry and the passed Geometry. |
Methods inherited from class org.deegree.model.spatialschema.OrientablePrimitiveImpl |
---|
getOrientation, setOrientation |
Methods inherited from class org.deegree.model.spatialschema.GeometryImpl |
---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isValid, isWithinDistance, setCoordinateSystem, setEmpty, setTolerance, setValid |
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 |
---|
contains, contains, difference, distance, getBoundary, getBuffer, getBuffer, getCentroid, getConvexHull, getCoordinateSystem, getEnvelope, getTolerance, intersection, isWithinDistance, setTolerance |
Field Detail |
---|
protected java.util.ArrayList<CurveSegment> segments
Constructor Detail |
---|
protected CurveImpl(CurveSegment segments) throws GeometryException
segments
- array of CurveSegment
GeometryException
protected CurveImpl(CurveSegment[] segments) throws GeometryException
segments
- array of CurveSegment
GeometryException
protected CurveImpl(CurveSegment[] segments, CoordinateSystem crs) throws GeometryException
segments
- array of CurveSegmentcrs
-
GeometryException
protected CurveImpl(char orientation, CurveSegment[] segments) throws GeometryException
segments
- array of CurveSegmentorientation
- of the curve
GeometryException
Method Detail |
---|
protected void calculateParam()
GeometryImpl
calculateParam
in class GeometryImpl
public CurveBoundary getCurveBoundary()
getCurveBoundary
in interface OrientableCurve
public int getDimension()
getDimension
in interface Geometry
public int getCoordinateDimension()
getCoordinateDimension
in interface Geometry
public boolean intersects(Geometry gmo)
dummy implementation
intersects
in interface Geometry
intersects
in class GeometryImpl
gmo
- the Geometry to intersect with
public double getLength()
getLength
in interface GenericCurve
public int getNumberOfCurveSegments()
getNumberOfCurveSegments
in interface Curve
public Point getStartPoint()
getStartPoint
in interface GenericCurve
public Point getEndPoint()
getEndPoint
in interface GenericCurve
public LineString getAsLineString() throws GeometryException
getAsLineString
in interface GenericCurve
GeometryException
public CurveSegment getCurveSegmentAt(int index) throws GeometryException
getCurveSegmentAt
in interface Curve
index
- index of the curve segment that should be returned
GeometryException
- a exception will be thrown if index is smaller than '0' or larger than
getNumberOfCurveSegments()-1public CurveSegment[] getCurveSegments() throws GeometryException
getCurveSegments
in interface Curve
GeometryException
public boolean isEmpty()
isEmpty
in interface Geometry
isEmpty
in class GeometryImpl
public void translate(double[] d)
translate
in interface Geometry
translate
in class GeometryImpl
d
- vector to translate the geometry withpublic boolean equals(java.lang.Object other)
equals
in class GeometryImpl
other
- object to compare to
public Geometry union(Geometry other)
GeometryImpl
union
in interface Geometry
union
in class GeometryImpl
other
- the Geometry to unify
public java.lang.Object clone()
clone
in class GeometryImpl
public java.lang.String toString()
toString
in class GeometryImpl
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org