|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.geometry.GM_CurveSegment_Impl
org.deegree_impl.model.geometry.GM_LineString_Impl
default implementation of the GM_LineString interface of package jago.model. ------------------------------------------------------------
Field Summary | |
protected CS_CoordinateSystem |
crs
|
protected GM_Position[] |
points
|
private static long |
serialVersionUID
Use serialVersionUID for interoperability. |
Constructor Summary | |
GM_LineString_Impl(GM_Position[] gmps,
CS_CoordinateSystem cs)
Creates a new GM_LineString_Impl object. |
Method Summary | |
java.lang.Object |
clone()
returns a shallow copy of the geometry |
boolean |
contains(GM_Object gmo)
The Boolean valued operation "contains" shall return TRUE if this GM_Object contains another GM_Object. |
boolean |
equals(java.lang.Object other)
checks if this curve segment is completly equal to the submitted geometry |
GM_LineString |
getAsLineString()
returns a reference to itself |
CS_CoordinateSystem |
getCoordinateSystem()
returns the coordinate system of the curve segment |
GM_Point |
getEndPoint()
returns the last point of the curve. if the curve 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 |
getNumberOfPoints()
returns the number of points building the curve or curve segment |
GM_Position |
getPositionAt(int index)
returns the curve segment position at the submitted index |
GM_Position[] |
getPositions()
returns all positions of the segement as array of GM_Position. |
GM_Point |
getStartPoint()
returns the first point of the curve. if the curve segment doesn't contain a point null will be returned |
boolean |
intersects(GM_Object gmo)
The Boolean valued operation "intersects" shall return TRUE if this GM_Object intersects another GM_Object. |
private boolean |
intersectsMultiPrimitive(GM_MultiPrimitive mprim)
the operations returns true if the submitted multi primitive intersects with the curve segment |
void |
reverse()
reverses the direction of the curvesegment |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.deegree.model.geometry.GM_CurveSegment |
getCoordinateSystem, getNumberOfPoints, getPositionAt, getPositions, reverse |
Methods inherited from interface org.deegree.model.geometry.GM_GenericCurve |
getEndPoint, getStartPoint |
Field Detail |
private static final long serialVersionUID
protected CS_CoordinateSystem crs
protected GM_Position[] points
Constructor Detail |
public GM_LineString_Impl(GM_Position[] gmps, CS_CoordinateSystem cs) throws GM_Exception
gmps
- cs
-
GM_Exception
Method Detail |
public java.lang.Object clone()
public double getLength()
getLength
in interface GM_GenericCurve
public GM_LineString getAsLineString() throws GM_Exception
getAsLineString
in interface GM_GenericCurve
GM_Exception
public boolean intersects(GM_Object gmo)
intersects
in interface GM_CurveSegment
private boolean intersectsMultiPrimitive(GM_MultiPrimitive mprim) throws java.lang.Exception
java.lang.Exception
public boolean contains(GM_Object gmo)
contains
in interface GM_CurveSegment
contains
in class GM_CurveSegment_Impl
public GM_Point getStartPoint()
null
will be returned
getStartPoint
in interface GM_GenericCurve
public GM_Point getEndPoint()
null
will be returned
getEndPoint
in interface GM_GenericCurve
public int getNumberOfPoints()
getNumberOfPoints
in interface GM_CurveSegment
public GM_Position[] getPositions()
getPositions
in interface GM_CurveSegment
public GM_Position getPositionAt(int index)
getPositionAt
in interface GM_CurveSegment
public void reverse()
reverse
in interface GM_CurveSegment
public CS_CoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface GM_CurveSegment
public boolean equals(java.lang.Object other)
other
- object to compare topublic java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |