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:
ShapeFactory.polygon()
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ShapeFactory.PolygonBuilder.HoleBuilder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Shape
build()
Builds the polygon and renders this builder instance invalid.Shape
buildOrRect()
ShapeFactory.PolygonBuilder.HoleBuilder
hole()
Starts a new hole.-
Methods inherited from interface org.locationtech.spatial4j.shape.ShapeFactory.PointsBuilder
pointLatLon, pointXY, pointXYZ
-
-
-
-
Method Detail
-
hole
ShapeFactory.PolygonBuilder.HoleBuilder 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()
-
-