Class MortonCurveBuilder
java.lang.Object
org.locationtech.jts.shape.GeometricShapeBuilder
org.locationtech.jts.shape.fractal.MortonCurveBuilder
Generates a
LineString
representing the Morton 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
ConstructorsConstructorDescriptionMortonCurveBuilder
(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
-
MortonCurveBuilder
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]. This determines the number of points in the generated curve.- Parameters:
level
- the level of the curve
-
getGeometry
- Specified by:
getGeometry
in classGeometricShapeBuilder
-