Package mil.nga.sf

Class MultiCurve<T extends Curve>

  • Type Parameters:
    T - curve type
    All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    MultiLineString

    public abstract class MultiCurve<T extends Curve>
    extends GeometryCollection<T>
    A restricted form of GeometryCollection where each Geometry in the collection must be of type Curve.
    Author:
    osbornb
    See Also:
    Serialized Form
    • Constructor Detail

      • MultiCurve

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

      • getCurves

        public List<T> getCurves()
        Get the curves
        Returns:
        curves
      • setCurves

        public void setCurves​(List<T> curves)
        Set the curves
        Parameters:
        curves - curves
      • addCurve

        public void addCurve​(T curve)
        Add a curve
        Parameters:
        curve - curve
      • addCurves

        public void addCurves​(List<T> curves)
        Add curves
        Parameters:
        curves - curves
      • numCurves

        public int numCurves()
        Get the number of curves
        Returns:
        number of curves
      • getCurve

        public T getCurve​(int n)
        Returns the Nth curve
        Parameters:
        n - nth line curve to return
        Returns:
        curve
      • isClosed

        public boolean isClosed()
        Determine if this Multi Curve is closed for each Curve (start point = end point)
        Returns:
        true if closed