Class HilbertCurveBuilder
java.lang.Object
org.locationtech.jts.shape.GeometricShapeBuilder
org.locationtech.jts.shape.fractal.HilbertCurveBuilder
Generates a
LineString
representing the Hilbert Curve
at a given level.- Author:
- Martin Davis
- See Also:
-
Field Summary
Fields inherited from class org.locationtech.jts.shape.GeometricShapeBuilder
extent, geomFactory, numPts
-
Constructor Summary
ConstructorsConstructorDescriptionHilbertCurveBuilder
(GeometryFactory geomFactory) Creates a new instance using the providedGeometryFactory
. -
Method Summary
Methods inherited from class org.locationtech.jts.shape.GeometricShapeBuilder
createCoord, getCentre, getDiameter, getExtent, getRadius, getSquareBaseLine, getSquareExtent, setExtent, setNumPoints
-
Constructor Details
-
HilbertCurveBuilder
Creates a new instance using the providedGeometryFactory
.- Parameters:
geomFactory
- the geometry factory to use
-
-
Method Details
-
setLevel
public void setLevel(int level) Sets the level of curve to generate. The level must be in the range [0 - 16].- Parameters:
level
- the order of the curve
-
getGeometry
- Specified by:
getGeometry
in classGeometricShapeBuilder
-