Class ProjectGeometryOp

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

public class ProjectGeometryOp extends Object

Geometry operation to return geometries in a ProjectedCRS which makes measuring and other geometry operations easier.

Large geometries or GeometryCollections may be split into pieces.

  • Constructor Details

    • ProjectGeometryOp

      public ProjectGeometryOp(nz.org.riskscape.engine.SRIDSet sridSet)
  • Method Details

    • apply

      public List<ProjectGeometryOp.Projected> apply(org.locationtech.jts.geom.Geometry geom)

      Returns a List of ProjectGeometryOp.Projected containing the source geometry and it's CoordinateReferenceSystem along with a re-projected version (or part) of it. Useful when geometries need to be measured or segmented.

      Projected relates to the geometry's CoordinateReferenceSystem been a ProjectedCRS in which case the geometry's units are meaningful to measure. That is a square metre is a meaningful measurement, whereas the size of a square degree depends on the latitude of that square degree.

      Parameters:
      geom -
      Returns:
      List