Package org.locationtech.spatial4j.shape
Interface ShapeFactory.PolygonBuilder
- All Superinterfaces:
ShapeFactory.PointsBuilder<ShapeFactory.PolygonBuilder>
- All Known Implementing Classes:
JtsShapeFactory.JtsPolygonBuilder
- Enclosing interface:
ShapeFactory
public static interface ShapeFactory.PolygonBuilder
extends ShapeFactory.PointsBuilder<ShapeFactory.PolygonBuilder>
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from interface org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder
pointLatLon, pointXY, pointXYZ
-
Method Details
-
hole
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()
! -
build
Shape build()Builds the polygon and renders this builder instance invalid. -
buildOrRect
Shape buildOrRect()
-