Package org.apache.sedona.common.raster
Class PixelFunctions
java.lang.Object
org.apache.sedona.common.raster.PixelFunctions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.locationtech.jts.geom.GeometrygetPixelAsCentroid(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY) static List<PixelRecord>getPixelAsCentroids(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band) static org.locationtech.jts.geom.GeometrygetPixelAsPoint(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY) static List<PixelRecord>getPixelAsPoints(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band) static org.locationtech.jts.geom.GeometrygetPixelAsPolygon(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY) static List<PixelRecord>getPixelAsPolygons(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band) static Doublevalue(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int colX, int rowY, int band) static Doublevalue(org.geotools.coverage.grid.GridCoverage2D rasterGeom, org.locationtech.jts.geom.Geometry geometry) static Doublevalue(org.geotools.coverage.grid.GridCoverage2D rasterGeom, org.locationtech.jts.geom.Geometry geometry, int band) values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int[] xCoordinates, int[] yCoordinates, int band) values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, List<org.locationtech.jts.geom.Geometry> geometries) values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, List<org.locationtech.jts.geom.Geometry> geometries, int band)
-
Constructor Details
-
PixelFunctions
public PixelFunctions()
-
-
Method Details
-
value
public static Double value(org.geotools.coverage.grid.GridCoverage2D rasterGeom, org.locationtech.jts.geom.Geometry geometry, int band) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
value
public static Double value(org.geotools.coverage.grid.GridCoverage2D rasterGeom, org.locationtech.jts.geom.Geometry geometry) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
value
public static Double value(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int colX, int rowY, int band) throws org.geotools.api.referencing.operation.TransformException - Throws:
org.geotools.api.referencing.operation.TransformException
-
getPixelAsPolygon
public static org.locationtech.jts.geom.Geometry getPixelAsPolygon(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
getPixelAsPolygons
public static List<PixelRecord> getPixelAsPolygons(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
getPixelAsCentroid
public static org.locationtech.jts.geom.Geometry getPixelAsCentroid(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException - Throws:
org.geotools.api.referencing.FactoryExceptionorg.geotools.api.referencing.operation.TransformException
-
getPixelAsCentroids
public static List<PixelRecord> getPixelAsCentroids(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
getPixelAsPoint
public static org.locationtech.jts.geom.Geometry getPixelAsPoint(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
getPixelAsPoints
public static List<PixelRecord> getPixelAsPoints(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
values
public static List<Double> values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int[] xCoordinates, int[] yCoordinates, int band) throws org.geotools.api.referencing.operation.TransformException - Throws:
org.geotools.api.referencing.operation.TransformException
-
values
public static List<Double> values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, List<org.locationtech.jts.geom.Geometry> geometries, int band) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-
values
public static List<Double> values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, List<org.locationtech.jts.geom.Geometry> geometries) throws org.geotools.api.referencing.operation.TransformException, org.geotools.api.referencing.FactoryException - Throws:
org.geotools.api.referencing.operation.TransformExceptionorg.geotools.api.referencing.FactoryException
-