Class RasterEditors

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

public class RasterEditors extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.geotools.coverage.grid.GridCoverage2D
    interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster)
     
    static org.geotools.coverage.grid.GridCoverage2D
    interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power)
     
    static org.geotools.coverage.grid.GridCoverage2D
    interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode)
     
    static org.geotools.coverage.grid.GridCoverage2D
    interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode, Double numPointsOrRadius)
     
    static org.geotools.coverage.grid.GridCoverage2D
    interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode, Double numPointsOrRadius, Double maxRadiusOrMinPoints)
     
    static org.geotools.coverage.grid.GridCoverage2D
    interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode, Double numPointsOrRadius, Double maxRadiusOrMinPoints, Integer band)
     
    static org.geotools.coverage.grid.GridCoverage2D
    normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom)
     
    static org.geotools.coverage.grid.GridCoverage2D
    normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim)
     
    static org.geotools.coverage.grid.GridCoverage2D
    normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, boolean normalizeAcrossBands)
     
    static org.geotools.coverage.grid.GridCoverage2D
    normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, boolean normalizeAcrossBands, Double noDataValue)
     
    static org.geotools.coverage.grid.GridCoverage2D
    normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, boolean normalizeAcrossBands, Double noDataValue, Double minValue, Double maxValue)
     
    static org.geotools.coverage.grid.GridCoverage2D
    normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, Double noDataValue, Double minValue, Double maxValue)
     
    static org.geotools.coverage.grid.GridCoverage2D
    reprojectMatch(org.geotools.coverage.grid.GridCoverage2D source, org.geotools.coverage.grid.GridCoverage2D target, String interpolationAlgorithm)
     
    static org.geotools.coverage.grid.GridCoverage2D
    resample(org.geotools.coverage.grid.GridCoverage2D raster, double widthOrScale, double heightOrScale, boolean useScale, String algorithm)
     
    static org.geotools.coverage.grid.GridCoverage2D
    resample(org.geotools.coverage.grid.GridCoverage2D raster, double widthOrScale, double heightOrScale, double gridX, double gridY, boolean useScale, String algorithm)
     
    static org.geotools.coverage.grid.GridCoverage2D
    resample(org.geotools.coverage.grid.GridCoverage2D raster, org.geotools.coverage.grid.GridCoverage2D referenceRaster, boolean useScale, String algorithm)
     
    static org.geotools.coverage.grid.GridCoverage2D
    setGeoReference(org.geotools.coverage.grid.GridCoverage2D raster, double upperLeftX, double upperLeftY, double scaleX, double scaleY, double skewX, double skewY)
     
    static org.geotools.coverage.grid.GridCoverage2D
    setGeoReference(org.geotools.coverage.grid.GridCoverage2D raster, String geoRefCoords)
     
    static org.geotools.coverage.grid.GridCoverage2D
    setGeoReference(org.geotools.coverage.grid.GridCoverage2D raster, String geoRefCoords, String format)
     
    static org.geotools.coverage.grid.GridCoverage2D
    setPixelType(org.geotools.coverage.grid.GridCoverage2D raster, String dataType)
    Changes the band pixel type of a specific band of a raster.
    static org.geotools.coverage.grid.GridCoverage2D
    setSrid(org.geotools.coverage.grid.GridCoverage2D raster, int srid)
     

    Methods inherited from class java.lang.Object

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

    • RasterEditors

      public RasterEditors()
  • Method Details

    • setPixelType

      public static org.geotools.coverage.grid.GridCoverage2D setPixelType(org.geotools.coverage.grid.GridCoverage2D raster, String dataType)
      Changes the band pixel type of a specific band of a raster.
      Parameters:
      raster - The input raster.
      dataType - The desired data type of the pixel.
      Returns:
      The modified raster with updated pixel type.
    • setSrid

      public static org.geotools.coverage.grid.GridCoverage2D setSrid(org.geotools.coverage.grid.GridCoverage2D raster, int srid)
    • setGeoReference

      public static org.geotools.coverage.grid.GridCoverage2D setGeoReference(org.geotools.coverage.grid.GridCoverage2D raster, String geoRefCoords, String format)
    • setGeoReference

      public static org.geotools.coverage.grid.GridCoverage2D setGeoReference(org.geotools.coverage.grid.GridCoverage2D raster, String geoRefCoords)
    • setGeoReference

      public static org.geotools.coverage.grid.GridCoverage2D setGeoReference(org.geotools.coverage.grid.GridCoverage2D raster, double upperLeftX, double upperLeftY, double scaleX, double scaleY, double skewX, double skewY)
    • resample

      public static org.geotools.coverage.grid.GridCoverage2D resample(org.geotools.coverage.grid.GridCoverage2D raster, double widthOrScale, double heightOrScale, double gridX, double gridY, boolean useScale, String algorithm) throws org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.operation.TransformException
    • resample

      public static org.geotools.coverage.grid.GridCoverage2D resample(org.geotools.coverage.grid.GridCoverage2D raster, double widthOrScale, double heightOrScale, boolean useScale, String algorithm) throws org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.operation.TransformException
    • resample

      public static org.geotools.coverage.grid.GridCoverage2D resample(org.geotools.coverage.grid.GridCoverage2D raster, org.geotools.coverage.grid.GridCoverage2D referenceRaster, boolean useScale, String algorithm) throws org.geotools.api.referencing.FactoryException, org.geotools.api.referencing.operation.TransformException
      Throws:
      org.geotools.api.referencing.FactoryException
      org.geotools.api.referencing.operation.TransformException
    • normalizeAll

      public static org.geotools.coverage.grid.GridCoverage2D normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom)
    • normalizeAll

      public static org.geotools.coverage.grid.GridCoverage2D normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim)
    • normalizeAll

      public static org.geotools.coverage.grid.GridCoverage2D normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, boolean normalizeAcrossBands)
    • normalizeAll

      public static org.geotools.coverage.grid.GridCoverage2D normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, boolean normalizeAcrossBands, Double noDataValue)
    • normalizeAll

      public static org.geotools.coverage.grid.GridCoverage2D normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, Double noDataValue, Double minValue, Double maxValue)
    • normalizeAll

      public static org.geotools.coverage.grid.GridCoverage2D normalizeAll(org.geotools.coverage.grid.GridCoverage2D rasterGeom, double minLim, double maxLim, boolean normalizeAcrossBands, Double noDataValue, Double minValue, Double maxValue)
      Parameters:
      rasterGeom - Raster to be normalized
      minLim - Lower limit of normalization range
      maxLim - Upper limit of normalization range
      normalizeAcrossBands - flag to determine the normalization method
      noDataValue - NoDataValue used in raster
      minValue - Minimum value in raster
      maxValue - Maximum value in raster
      Returns:
      a raster with all values in all bands normalized between minLim and maxLim
    • reprojectMatch

      public static org.geotools.coverage.grid.GridCoverage2D reprojectMatch(org.geotools.coverage.grid.GridCoverage2D source, org.geotools.coverage.grid.GridCoverage2D target, String interpolationAlgorithm)
    • interpolate

      public static org.geotools.coverage.grid.GridCoverage2D interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • interpolate

      public static org.geotools.coverage.grid.GridCoverage2D interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • interpolate

      public static org.geotools.coverage.grid.GridCoverage2D interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • interpolate

      public static org.geotools.coverage.grid.GridCoverage2D interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode, Double numPointsOrRadius) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • interpolate

      public static org.geotools.coverage.grid.GridCoverage2D interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode, Double numPointsOrRadius, Double maxRadiusOrMinPoints) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • interpolate

      public static org.geotools.coverage.grid.GridCoverage2D interpolate(org.geotools.coverage.grid.GridCoverage2D inputRaster, Double power, String mode, Double numPointsOrRadius, Double maxRadiusOrMinPoints, Integer band) throws IllegalArgumentException
      Throws:
      IllegalArgumentException