Package org.opengis.cite.geomatics.gml
Enum Class CurveSegmentType
- All Implemented Interfaces:
Serializable,Comparable<CurveSegmentType>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiongml:ArcByCenterPoint, gml:CircleByCenterPointgml:ArcString, gml:Arc, gml:Circlegml:GeodesicString, gml:Geodesicgml:LineStringSegment -
Method Summary
Modifier and TypeMethodDescriptionabstract List<Coordinate>getCoordinateList(org.geotoolkit.gml.xml.AbstractCurveSegment segment, CoordinateReferenceSystem crs) Returns a list of points on a curve segment.static CurveSegmentTypeReturns the enum constant of this class with the specified name.static CurveSegmentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LINE_STRING
gml:LineStringSegment -
GEODESIC_STRING
gml:GeodesicString, gml:Geodesic -
ARC_BY_CENTER
gml:ArcByCenterPoint, gml:CircleByCenterPoint -
ARC_STRING
gml:ArcString, gml:Arc, gml:Circle
-
-
Method Details
-
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
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 nameNullPointerException- 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).
-