Package mil.nga.sf

Class Line

    • Constructor Detail

      • Line

        public Line()
        Constructor
      • Line

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

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

        public Line​(Point point1,
                    Point point2)
        Constructor
        Parameters:
        point1 - first point
        point2 - second point
        Since:
        2.2.0
      • Line

        public Line​(Line line)
        Copy Constructor
        Parameters:
        line - line to copy
    • Method Detail

      • setPoints

        public void setPoints​(List<Point> points)
        Set the points
        Overrides:
        setPoints in class LineString
        Parameters:
        points - points
      • copy

        public Geometry copy()
        Copy the geometry
        Overrides:
        copy in class LineString
        Returns:
        geometry copy