Package mil.nga.sf

Class LineString

    • Constructor Detail

      • LineString

        public LineString()
        Constructor
      • LineString

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

        public LineString​(List<Point> points)
        Constructor
        Parameters:
        points - list of points
      • LineString

        public LineString​(LineString lineString)
        Copy Constructor
        Parameters:
        lineString - line string to copy
      • LineString

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

      • getPoints

        public List<Point> getPoints()
        Get the points
        Returns:
        points
      • setPoints

        public void setPoints​(List<Point> points)
        Set the points
        Parameters:
        points - points
      • addPoint

        public void addPoint​(Point point)
        Add a point
        Parameters:
        point - point
      • addPoints

        public void addPoints​(List<Point> points)
        Add points
        Parameters:
        points - points
      • numPoints

        public int numPoints()
        Get the number of points
        Returns:
        number of points
      • getPoint

        public Point getPoint​(int n)
        Returns the Nth point
        Parameters:
        n - nth point to return
        Returns:
        point
      • 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