Package mil.nga.sf

Class CompoundCurve

    • Constructor Detail

      • CompoundCurve

        public CompoundCurve()
        Constructor
      • CompoundCurve

        public CompoundCurve​(boolean hasZ,
                             boolean hasM)
        Constructor
        Parameters:
        hasZ - has z
        hasM - has m
      • CompoundCurve

        public CompoundCurve​(List<LineString> lineStrings)
        Constructor
        Parameters:
        lineStrings - list of line strings
      • CompoundCurve

        public CompoundCurve​(LineString lineString)
        Constructor
        Parameters:
        lineString - line string
      • CompoundCurve

        public CompoundCurve​(CompoundCurve compoundCurve)
        Copy Constructor
        Parameters:
        compoundCurve - compound Curve to copy
    • Method Detail

      • getLineStrings

        public List<LineString> getLineStrings()
        Get the line strings
        Returns:
        line strings
      • setLineStrings

        public void setLineStrings​(List<LineString> lineStrings)
        Set the line strings
        Parameters:
        lineStrings - line strings
      • addLineString

        public void addLineString​(LineString lineString)
        Add a line string
        Parameters:
        lineString - line string
      • addLineStrings

        public void addLineStrings​(List<LineString> lineStrings)
        Add line strings
        Parameters:
        lineStrings - line strings
      • numLineStrings

        public int numLineStrings()
        Get the number of line strings
        Returns:
        number of line strings
      • getLineString

        public LineString getLineString​(int n)
        Returns the Nth line string
        Parameters:
        n - nth line string to return
        Returns:
        line string
      • startPoint

        public Point startPoint()
        Get the start Point of this Curve
        Specified by:
        startPoint in class Curve
        Returns:
        start point
      • endPoint

        public Point endPoint()
        Get the end Point of this Curve
        Specified by:
        endPoint in class Curve
        Returns:
        end point
      • isSimple

        public boolean isSimple()
        Determine if this Geometry has no anomalous geometric points, such as self intersection or self tangency
        Specified by:
        isSimple in class Geometry
        Returns:
        true if simple
      • copy

        public Geometry copy()
        Copy the geometry
        Specified by:
        copy in class Geometry
        Returns:
        geometry copy
      • isEmpty

        public boolean isEmpty()
        Is the Geometry empty
        Specified by:
        isEmpty in class Geometry
        Returns:
        true if empty