| 构造器 | 说明 |
|---|---|
Polygon() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addHole(List<? extends PointD> points) |
Add a hole line
|
Extent |
getExtent() |
Get extent
|
List<? extends PointD> |
getHoleLine(int idx) |
Get a hole line
|
int |
getHoleLineNumber() |
Get hole line number
|
List<List<? extends PointD>> |
getHoleLines() |
Get hole lines
|
List<List<? extends PointD>> |
getHoleLines_bak() |
Get hole lines
|
List<? extends PointD> |
getOutLine() |
Get outLine
|
int |
getRingNumber() |
Get ring number - outline number + holeline number
|
List<List<? extends PointD>> |
getRings() |
Get rings
|
boolean |
hasHole() |
Determine if the polygon has hole
|
void |
removeHole(int holeIdx) |
Remove a hole line
|
void |
setHoleLine(int idx,
List<? extends PointD> holeLine) |
Set a hole line
|
void |
setHoleLines(List<List<? extends PointD>> holeLines) |
Set hole lines
|
void |
setOutLine(List<? extends PointD> outLine) |
Set outLine point list
|
org.locationtech.jts.geom.Geometry |
toGeometry(org.locationtech.jts.geom.GeometryFactory factory) |
To geometry
|
public void setOutLine(List<? extends PointD> outLine)
outLine - outLine point listpublic List<List<? extends PointD>> getHoleLines_bak()
public List<? extends PointD> getHoleLine(int idx)
idx - Indexpublic void setHoleLines(List<List<? extends PointD>> holeLines)
holeLines - hole lines listpublic void setHoleLine(int idx,
List<? extends PointD> holeLine)
idx - IndexholeLine - The hole linepublic Extent getExtent()
public boolean hasHole()
public int getHoleLineNumber()
public int getRingNumber()
public void removeHole(int holeIdx)
holeIdx - Hole indexpublic org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
factory - GeometryFactoryCopyright © 2019. All rights reserved.