类 PolylineShape

    • 字段详细资料

      • parts

        public int[] parts
        Part array
    • 构造器详细资料

      • PolylineShape

        public PolylineShape()
        Constructor
      • PolylineShape

        public PolylineShape​(org.locationtech.jts.geom.Geometry geometry)
        Constructor
        参数:
        geometry - Geometry
    • 方法详细资料

      • toGeometry

        public org.locationtech.jts.geom.Geometry toGeometry​(org.locationtech.jts.geom.GeometryFactory factory)
        To geometry method
        指定者:
        toGeometry 在类中 Shape
        参数:
        factory - GeometryFactory
        返回:
        Geometry
      • getPoints

        public java.util.List<? extends PointD> getPoints()
        Get points
        覆盖:
        getPoints 在类中 Shape
        返回:
        point list
      • setPoints

        public void setPoints​(java.util.List<? extends PointD> points)
        Set points
        覆盖:
        setPoints 在类中 Shape
        参数:
        points - point list
      • getPartNum

        public int getPartNum()
        Get part number
        返回:
        Part number
      • setPartNum

        public void setPartNum​(int value)
        Set part number
        参数:
        value - Part number
      • getPointNum

        public int getPointNum()
        Get point number
        返回:
        Point number
      • getPolylines

        public java.util.List<? extends Polyline> getPolylines()
        Get polylines
        返回:
        polyline list
      • setPolylines

        public void setPolylines​(java.util.List<? extends Polyline> polylines)
      • getLength

        public double getLength()
        Get length
        返回:
        length
      • getPartIndex

        public int getPartIndex​(int vIdx)
        Get part index
        参数:
        vIdx - The vertice index
        返回:
        Part index
      • addVertice

        public void addVertice​(int vIdx,
                               PointD vertice)
        Add a vertice
        覆盖:
        addVertice 在类中 Shape
        参数:
        vIdx - Vertice index
        vertice - The vertice
      • removeVerice

        public void removeVerice​(int vIdx)
        Remove a vertice
        覆盖:
        removeVerice 在类中 Shape
        参数:
        vIdx - Vertice index
      • reverse

        public void reverse()
        Reverse points direction
        覆盖:
        reverse 在类中 Shape
      • clone_back

        public java.lang.Object clone_back()
      • clone

        public java.lang.Object clone()
        Clone
        覆盖:
        clone 在类中 Shape
        返回:
        PolylineShape
      • valueClone

        public java.lang.Object valueClone()
        Value clone
        返回:
        PolylineShape
      • cloneValue

        public void cloneValue​(Shape other)
        Clone value
        覆盖:
        cloneValue 在类中 Shape
        参数:
        other - Other polyline shape
      • isClosed

        public boolean isClosed()
        Check if the polyline shape is closed or not
        返回:
        Boolean