Package mil.nga.sf

Class Curve

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    CompoundCurve, LineString

    public abstract class Curve
    extends Geometry
    The base type for all 1-dimensional geometry types. A 1-dimensional geometry is a geometry that has a length, but no area. A curve is considered simple if it does not intersect itself (except at the start and end point). A curve is considered closed its start and end point are coincident. A simple, closed curve is called a ring.
    Author:
    osbornb
    See Also:
    Serialized Form
    • Constructor Detail

      • Curve

        protected Curve​(GeometryType type,
                        boolean hasZ,
                        boolean hasM)
        Constructor
        Parameters:
        type - geometry type
        hasZ - has z
        hasM - has m
    • Method Detail

      • startPoint

        public abstract Point startPoint()
        Get the start Point of this Curve
        Returns:
        start point
      • endPoint

        public abstract Point endPoint()
        Get the end Point of this Curve
        Returns:
        end point
      • isClosed

        public boolean isClosed()
        Determine if this Curve is closed (start point = end point)
        Returns:
        true if closed
      • isRing

        public boolean isRing()
        Determine if this Curve is a ring (closed and simple)
        Returns:
        true if a ring