Package org.locationtech.jts.shape
Class GeometricShapeBuilder
java.lang.Object
org.locationtech.jts.shape.GeometricShapeBuilder
- Direct Known Subclasses:
HilbertCurveBuilder
,KochSnowflakeBuilder
,MortonCurveBuilder
,RandomPointsBuilder
,RandomPointsInGridBuilder
,SierpinskiCarpetBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Coordinate
createCoord
(double x, double y) double
abstract Geometry
double
void
void
setNumPoints
(int numPts) Sets the total number of points in the createdGeometry
.
-
Field Details
-
extent
-
numPts
protected int numPts -
geomFactory
-
-
Constructor Details
-
GeometricShapeBuilder
-
-
Method Details
-
setExtent
-
getExtent
-
getCentre
-
getDiameter
public double getDiameter() -
getRadius
public double getRadius() -
getSquareBaseLine
-
getSquareExtent
-
setNumPoints
public void setNumPoints(int numPts) Sets the total number of points in the createdGeometry
. The created geometry will have no more than this number of points, unless more are needed to create a valid geometry. -
getGeometry
-
createCoord
-