Class PixelFunctions

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

public class PixelFunctions extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.locationtech.jts.geom.Geometry
    getPixelAsCentroid(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY)
     
    getPixelAsCentroids(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band)
     
    static org.locationtech.jts.geom.Geometry
    getPixelAsPoint(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY)
     
    getPixelAsPoints(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band)
     
    static org.locationtech.jts.geom.Geometry
    getPixelAsPolygon(org.geotools.coverage.grid.GridCoverage2D raster, int colX, int rowY)
     
    getPixelAsPolygons(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int band)
     
    static Double
    value(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int colX, int rowY, int band)
     
    static Double
    value(org.geotools.coverage.grid.GridCoverage2D rasterGeom, org.locationtech.jts.geom.Geometry geometry)
     
    static Double
    value(org.geotools.coverage.grid.GridCoverage2D rasterGeom, org.locationtech.jts.geom.Geometry geometry, int band)
     
    static List<Double>
    values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, int[] xCoordinates, int[] yCoordinates, int band)
     
    static List<Double>
    values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, List<org.locationtech.jts.geom.Geometry> geometries)
     
    static List<Double>
    values(org.geotools.coverage.grid.GridCoverage2D rasterGeom, List<org.locationtech.jts.geom.Geometry> geometries, int band)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.TransformException
      org.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.TransformException
      org.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.TransformException
      org.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.TransformException
      org.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.FactoryException
      org.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.TransformException
      org.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.TransformException
      org.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.TransformException
      org.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.TransformException
      org.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.TransformException
      org.geotools.api.referencing.FactoryException