Class RecursiveQuadGridOp

java.lang.Object
nz.org.riskscape.engine.geo.RecursiveQuadGridOp

public class RecursiveQuadGridOp extends Object

Alternative to CutGeometryByGridOp that builds a list of geometries that are intersected at a given grid size by breaking a feature up recursively in order to 'throw away' as many useless large areas as possible in order to cut down on the number of intersections required. This capitalizes on the fact that most shapes are featureless except for on their boundary.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    All the bits and pieces involved in the recursive quadding, plus ways of accessing it
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<? extends org.locationtech.jts.geom.Geometry>
    apply(org.locationtech.jts.geom.Geometry originalGeom, double gridSize)
     
    List<? extends org.locationtech.jts.geom.Geometry>
    apply(org.locationtech.jts.geom.Geometry originalGeom, double gridSize, org.locationtech.jts.geom.Coordinate alignTo)
     
    List<? extends org.locationtech.jts.geom.Geometry>
    apply(org.locationtech.jts.geom.Geometry originalGeom, double gridSize, org.locationtech.jts.geom.Point alignTo)
     
    applyDetailed(org.locationtech.jts.geom.Geometry originalGeom, double gridSize)
     
    applyDetailed(org.locationtech.jts.geom.Geometry originalGeom, double gridSize, org.locationtech.jts.geom.Coordinate alignTo)
    Compute the intersection of a grid of the given size with the given geometry, aligning the grid to the given coordinate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecursiveQuadGridOp

      public RecursiveQuadGridOp()
  • Method Details

    • apply

      public List<? extends org.locationtech.jts.geom.Geometry> apply(org.locationtech.jts.geom.Geometry originalGeom, double gridSize)
    • apply

      public List<? extends org.locationtech.jts.geom.Geometry> apply(org.locationtech.jts.geom.Geometry originalGeom, double gridSize, org.locationtech.jts.geom.Point alignTo)
    • apply

      public List<? extends org.locationtech.jts.geom.Geometry> apply(org.locationtech.jts.geom.Geometry originalGeom, double gridSize, org.locationtech.jts.geom.Coordinate alignTo)
    • applyDetailed

      public RecursiveQuadGridOp.Result applyDetailed(org.locationtech.jts.geom.Geometry originalGeom, double gridSize)
    • applyDetailed

      public RecursiveQuadGridOp.Result applyDetailed(org.locationtech.jts.geom.Geometry originalGeom, double gridSize, org.locationtech.jts.geom.Coordinate alignTo)

      Compute the intersection of a grid of the given size with the given geometry, aligning the grid to the given coordinate