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 ShapeFactory.PolygonBuilder
ShapeFactory.PolygonBuilder.HoleBuilder -
Field Summary
FieldsFields inherited from class JtsShapeFactory.CoordinatesAccumulator
coordinates -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class JtsShapeFactory.CoordinatesAccumulator
getCoordsArray, getThis, pointXY, pointXYZMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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.PolygonBuilderStarts 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:
holein interfaceShapeFactory.PolygonBuilder
-
build
Description copied from interface:ShapeFactory.PolygonBuilderBuilds the polygon and renders this builder instance invalid.- Specified by:
buildin interfaceShapeFactory.PolygonBuilder
-
buildOrRect
- Specified by:
buildOrRectin interfaceShapeFactory.PolygonBuilder
-
buildPolygonGeom
org.locationtech.jts.geom.Polygon buildPolygonGeom()
-