Package org.opengis.cite.geomatics.gml
Class CurveCoordinateListFactory
java.lang.Object
org.opengis.cite.geomatics.gml.CurveCoordinateListFactory
- All Implemented Interfaces:
CoordinateListFactory
Creates a sequence containing the coordinates of a curve. The list will generally
include the constituent vertices or control points that lie on the curve.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Indicates that an orientable curve has a negative orientation with respect to its base curve.static Map<String,
CurveSegmentType> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoordinateList
(org.geotoolkit.gml.xml.AbstractGeometry gmlGeometry) Creates a list of coordinates from a GML geometry representation.(package private) List<Coordinate>
getCoordinateList
(org.geotoolkit.gml.xml.Curve curve) Returns a list of points on a curve consisting of one or more segments.(package private) List<Coordinate>
getCoordinateList
(org.geotoolkit.gml.xml.LineString lineString) Returns a list of points representing the vertices of a LineString geometry.(package private) List<Coordinate>
getCoordinateList
(org.geotoolkit.gml.xml.v321.AbstractRingType ring) Returns a list of points on a ring representing a single connected component of a surface boundary.(package private) List<Coordinate>
getCoordinateList
(org.geotoolkit.gml.xml.v321.CompositeCurveType compCurve) Returns a list of points on a composite curve consisting of one or more curve members.(package private) List<Coordinate>
getCoordinateList
(org.geotoolkit.gml.xml.v321.OrientableCurveType orientableCurve) Returns a list of points on an orientable curve.
-
Field Details
-
ORIENT_NEG
Indicates that an orientable curve has a negative orientation with respect to its base curve.- See Also:
-
segmentTypeMap
-
-
Constructor Details
-
CurveCoordinateListFactory
public CurveCoordinateListFactory()
-
-
Method Details
-
createCoordinateList
Description copied from interface:CoordinateListFactory
Creates a list of coordinates from a GML geometry representation. The sequence typically includes the constituent vertices.- Specified by:
createCoordinateList
in interfaceCoordinateListFactory
- Parameters:
gmlGeometry
- A GML geometry object (constructed from its XML representation).- Returns:
- A list of 2D coordinates that constitute the geometry.
-
getCoordinateList
Returns a list of points on a curve consisting of one or more segments.- Parameters:
curve
- A gml:Curve geometry instance.- Returns:
- A list of coordinates on the curve.
-
getCoordinateList
Returns a list of points representing the vertices of a LineString geometry.- Parameters:
lineString
- A gml:LineString geometry instance.- Returns:
- The list of vertices.
-
getCoordinateList
Returns a list of points on a composite curve consisting of one or more curve members.- Parameters:
compCurve
- A gml:CompositeCurve geometry instance.- Returns:
- A list of points on the entire curve; the interpolation method may vary along its length.
-
getCoordinateList
Returns a list of points on an orientable curve. If the orientation is positive ("+"), then the orientable curve is identical to the base curve; otherwise the base curve is traversed in reverse order.- Parameters:
orientableCurve
- A gml:OrientableCurve geometry instance.- Returns:
- A list of points on the (base) curve; the order reflects the orientation with respect to the base curve.
-
getCoordinateList
List<Coordinate> getCoordinateList(org.geotoolkit.gml.xml.v321.AbstractRingType ring) throws Exception Returns a list of points on a ring representing a single connected component of a surface boundary. A ring is structurally similar to a composite curve.- Parameters:
ring
- A ring (gml:Ring or gml:LinearRing element).- Returns:
- A list of points on a ring (closed curve).
- Throws:
Exception
- If a curve member could not be accessed or parsed.
-