类 PolygonShape

    • 字段详细资料

      • _points

        protected java.util.List<? extends PointD> _points
      • _polygons

        protected java.util.List<? extends Polygon> _polygons
      • lowValue

        public double lowValue
        Start value
      • highValue

        public double highValue
        End value
      • _numParts

        protected int _numParts
        Part number
      • parts

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

      • PolygonShape

        public PolygonShape()
        Constructor
      • PolygonShape

        public PolygonShape​(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
      • setPoints_keep

        public void setPoints_keep​(PointF[] points)
        Set points and keep the polygons
        参数:
        points -
      • setPoints

        public void setPoints​(PointF[] points)
        参数:
        points -
      • getPartNum

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

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

        public int[] getParts()
        Get parts
        返回:
        Parts
      • setParts

        public void setParts​(int[] value)
        Set parts
        参数:
        value - Parts
      • getPointNum

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

        public java.util.List<? extends Polygon> getPolygons()
        Get polygons
        返回:
        polygon list
      • setPolygons

        public void setPolygons​(java.util.List<Polygon> polygons)
        Set polygons
        参数:
        polygons - polygon list
      • getArea

        public double getArea()
        Get area
        返回:
        area
      • getSphericalArea

        public double getSphericalArea()
        Get spherical area
        返回:
        spherical area
      • updatePolygons_keep

        protected void updatePolygons_keep()
      • updatePolygons

        protected void updatePolygons()
      • addHole

        public int addHole​(java.util.List<? extends PointD> points)
        Add a hole line
        参数:
        points - Hole points
        返回:
        Hole index
      • addHole

        public int addHole​(java.util.List<? extends PointD> points,
                           int polygonIdx)
        Add a hole line
        参数:
        points - point list
        polygonIdx - polygon index
        返回:
        Hole index
      • removeHole

        public void removeHole​(int polygonIdx,
                               int holeIdx)
        Remove a hole
        参数:
        polygonIdx - Polygon index
        holeIdx - Hole index
      • 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
        返回:
        PolygonShape
      • valueClone

        public PolygonShape valueClone()
        Clone polygon shape with values
        返回:
        new polygon shape
      • cloneValue

        public void cloneValue​(Shape other)
        Constructor
        覆盖:
        cloneValue 在类中 Shape
        参数:
        other - Other polygon shape
      • difference

        public Shape difference​(Shape b)
        Get difference shape
        覆盖:
        difference 在类中 Shape
        参数:
        b - Other shape
        返回:
        Difference shape