Enum Class CurveSegmentType

java.lang.Object
java.lang.Enum<CurveSegmentType>
org.opengis.cite.geomatics.gml.CurveSegmentType
All Implemented Interfaces:
Serializable, Comparable<CurveSegmentType>, Constable

public enum CurveSegmentType extends Enum<CurveSegmentType>
Curve segment type. A curve is composed of one or more contiguous curve segments, each of which may be defined using a different interpolation method.
  • Enum Constant Details

    • LINE_STRING

      public static final CurveSegmentType LINE_STRING
      gml:LineStringSegment
    • GEODESIC_STRING

      public static final CurveSegmentType GEODESIC_STRING
      gml:GeodesicString, gml:Geodesic
    • ARC_BY_CENTER

      public static final CurveSegmentType ARC_BY_CENTER
      gml:ArcByCenterPoint, gml:CircleByCenterPoint
    • ARC_STRING

      public static final CurveSegmentType ARC_STRING
      gml:ArcString, gml:Arc, gml:Circle
  • Method Details

    • values

      public static CurveSegmentType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CurveSegmentType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCoordinateList

      public abstract List<Coordinate> getCoordinateList(org.geotoolkit.gml.xml.AbstractCurveSegment segment, CoordinateReferenceSystem crs)
      Returns a list of points on a curve segment. Some points may be computed if not given explicitly (e.g. ArcByCenterPoint).
      Parameters:
      segment - A GML curve segment.
      crs - The coordinate reference system associated with the curve.
      Returns:
      A list of JTS Coordinate objects (ordered from start to end).