Class JtsShapeFactory.JtsPolygonBuilder
java.lang.Object
org.locationtech.spatial4j.shape.jts.JtsShapeFactory.CoordinatesAccumulator<JtsShapeFactory.JtsPolygonBuilder>
org.locationtech.spatial4j.shape.jts.JtsShapeFactory.JtsPolygonBuilder
- All Implemented Interfaces:
ShapeFactory.PointsBuilder<ShapeFactory.PolygonBuilder>
,ShapeFactory.PolygonBuilder
- Enclosing class:
JtsShapeFactory
private class JtsShapeFactory.JtsPolygonBuilder
extends JtsShapeFactory.CoordinatesAccumulator<JtsShapeFactory.JtsPolygonBuilder>
implements ShapeFactory.PolygonBuilder
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.locationtech.spatial4j.shape.ShapeFactory.PolygonBuilder
ShapeFactory.PolygonBuilder.HoleBuilder
-
Field Summary
FieldsFields inherited from class org.locationtech.spatial4j.shape.jts.JtsShapeFactory.CoordinatesAccumulator
coordinates
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.locationtech.spatial4j.shape.jts.JtsShapeFactory.CoordinatesAccumulator
getCoordsArray, getThis, pointXY, pointXYZ
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder
pointLatLon, pointXY, pointXYZ
-
Field Details
-
holes
List<org.locationtech.jts.geom.LinearRing> holes
-
-
Constructor Details
-
JtsPolygonBuilder
private JtsPolygonBuilder()
-
-
Method Details
-
hole
Description copied from interface:ShapeFactory.PolygonBuilder
Starts a new hole. You must add at least 4 points; furthermore the first and last must be the same. And don't forget to callShapeFactory.PolygonBuilder.HoleBuilder.endHole()
!- Specified by:
hole
in interfaceShapeFactory.PolygonBuilder
-
build
Description copied from interface:ShapeFactory.PolygonBuilder
Builds the polygon and renders this builder instance invalid.- Specified by:
build
in interfaceShapeFactory.PolygonBuilder
-
buildOrRect
- Specified by:
buildOrRect
in interfaceShapeFactory.PolygonBuilder
-
buildPolygonGeom
org.locationtech.jts.geom.Polygon buildPolygonGeom()
-