Class MortonCurveBuilder

java.lang.Object
org.locationtech.jts.shape.GeometricShapeBuilder
org.locationtech.jts.shape.fractal.MortonCurveBuilder

public class MortonCurveBuilder extends GeometricShapeBuilder
Generates a LineString representing the Morton Curve at a given level.
Author:
Martin Davis
See Also:
  • Constructor Details

    • MortonCurveBuilder

      public MortonCurveBuilder(GeometryFactory geomFactory)
      Creates a new instance using the provided GeometryFactory.
      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

      public Geometry getGeometry()
      Specified by:
      getGeometry in class GeometricShapeBuilder