Class CurveCoordinateListFactory

java.lang.Object
org.opengis.cite.geomatics.gml.CurveCoordinateListFactory
All Implemented Interfaces:
CoordinateListFactory

public class CurveCoordinateListFactory extends Object implements 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 Details

  • Constructor Details

    • CurveCoordinateListFactory

      public CurveCoordinateListFactory()
  • Method Details

    • createCoordinateList

      public List<Coordinate> createCoordinateList(org.geotoolkit.gml.xml.AbstractGeometry gmlGeometry)
      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 interface CoordinateListFactory
      Parameters:
      gmlGeometry - A GML geometry object (constructed from its XML representation).
      Returns:
      A list of 2D coordinates that constitute the geometry.
    • getCoordinateList

      List<Coordinate> getCoordinateList(org.geotoolkit.gml.xml.Curve curve)
      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

      List<Coordinate> getCoordinateList(org.geotoolkit.gml.xml.LineString lineString)
      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

      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.
      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

      List<Coordinate> getCoordinateList(org.geotoolkit.gml.xml.v321.OrientableCurveType orientableCurve)
      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.