Package org.apache.sedona.common.raster
Class GeometryFunctions
java.lang.Object
org.apache.sedona.common.raster.GeometryFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.GeometryconvexHull(org.geotools.coverage.grid.GridCoverage2D raster) * Returns the convex hull of the input rasterstatic voidensureSafeBand(org.geotools.coverage.grid.GridCoverage2D raster, int band) static org.locationtech.jts.geom.Geometryenvelope(org.geotools.coverage.grid.GridCoverage2D raster) static org.locationtech.jts.geom.GeometryminConvexHull(org.geotools.coverage.grid.GridCoverage2D raster) static org.locationtech.jts.geom.GeometryminConvexHull(org.geotools.coverage.grid.GridCoverage2D raster, Integer band)
-
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.FactoryExceptionorg.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.FactoryExceptionorg.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.FactoryExceptionorg.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
-