Class HilbertCurveBuilder

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

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

    • HilbertCurveBuilder

      public HilbertCurveBuilder(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].
      Parameters:
      level - the order of the curve
    • getGeometry

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