Class GeometryFunctions

java.lang.Object
org.apache.sedona.common.raster.GeometryFunctions

public class GeometryFunctions extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.Geometry
    convexHull(org.geotools.coverage.grid.GridCoverage2D raster)
    * Returns the convex hull of the input raster
    static void
    ensureSafeBand(org.geotools.coverage.grid.GridCoverage2D raster, int band)
     
    static org.locationtech.jts.geom.Geometry
    envelope(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static org.locationtech.jts.geom.Geometry
    minConvexHull(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static org.locationtech.jts.geom.Geometry
    minConvexHull(org.geotools.coverage.grid.GridCoverage2D raster, Integer band)
     

    Methods inherited from class java.lang.Object

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

    • GeometryFunctions

      public GeometryFunctions()
  • Method Details

    • convexHull

      public static org.locationtech.jts.geom.Geometry convexHull(org.geotools.coverage.grid.GridCoverage2D raster) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException
      * Returns the convex hull of the input raster
      Parameters:
      raster -
      Returns:
      Geometry: convex hull of the input raster
      Throws:
      org.geotools.api.referencing.FactoryException
      org.geotools.api.referencing.operation.TransformException
    • minConvexHull

      public static org.locationtech.jts.geom.Geometry minConvexHull(org.geotools.coverage.grid.GridCoverage2D raster, Integer band) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.FactoryException
      org.geotools.api.referencing.operation.TransformException
    • minConvexHull

      public static org.locationtech.jts.geom.Geometry minConvexHull(org.geotools.coverage.grid.GridCoverage2D raster) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.FactoryException
      org.geotools.api.referencing.operation.TransformException
    • ensureSafeBand

      public static void ensureSafeBand(org.geotools.coverage.grid.GridCoverage2D raster, int band) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • envelope

      public static org.locationtech.jts.geom.Geometry envelope(org.geotools.coverage.grid.GridCoverage2D raster) throws org.geotools.api.referencing.FactoryException
      Throws:
      org.geotools.api.referencing.FactoryException