Class RasterOutputs

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

public class RasterOutputs extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    asArcGrid(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static byte[]
    asArcGrid(org.geotools.coverage.grid.GridCoverage2D raster, int sourceBand)
     
    static String
    asBase64(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static String
    asBase64(org.geotools.coverage.grid.GridCoverage2D raster, int maxWidth)
     
    static byte[]
    asGeoTiff(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static byte[]
    asGeoTiff(org.geotools.coverage.grid.GridCoverage2D raster, String compressionType, double compressionQuality)
     
    static String
    asMatrix(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static String
    asMatrix(org.geotools.coverage.grid.GridCoverage2D raster, int band)
     
    static String
    asMatrix(org.geotools.coverage.grid.GridCoverage2D raster, int band, int postDecimalPrecision)
     
    static String
    asMatrixPretty(org.geotools.coverage.grid.GridCoverage2D raster, int band, int precision)
     
    static byte[]
    asPNG(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static byte[]
    asPNG(org.geotools.coverage.grid.GridCoverage2D raster, int maxWidth)
     
    static String
    createHTMLString(org.geotools.coverage.grid.GridCoverage2D raster)
     
    static String
    createHTMLString(org.geotools.coverage.grid.GridCoverage2D raster, int imageWidth)
     
    static boolean
    writeToDiskFile(byte[] bytes, String filePath)
    Creates a GeoTiff file with the provided raster.

    Methods inherited from class java.lang.Object

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

    • RasterOutputs

      public RasterOutputs()
  • Method Details

    • asGeoTiff

      public static byte[] asGeoTiff(org.geotools.coverage.grid.GridCoverage2D raster, String compressionType, double compressionQuality)
    • asGeoTiff

      public static byte[] asGeoTiff(org.geotools.coverage.grid.GridCoverage2D raster)
    • writeToDiskFile

      public static boolean writeToDiskFile(byte[] bytes, String filePath)
      Creates a GeoTiff file with the provided raster. Primarily used for testing.
      Parameters:
      bytes - The bytes to be stored on a disk file
      filePath - The path where the .tiff should be stored.
      Returns:
      true if file is created, otherwise throws IOException
    • asPNG

      public static byte[] asPNG(org.geotools.coverage.grid.GridCoverage2D raster, int maxWidth) throws IOException
      Throws:
      IOException
    • asPNG

      public static byte[] asPNG(org.geotools.coverage.grid.GridCoverage2D raster) throws IOException
      Throws:
      IOException
    • asArcGrid

      public static byte[] asArcGrid(org.geotools.coverage.grid.GridCoverage2D raster, int sourceBand)
    • asArcGrid

      public static byte[] asArcGrid(org.geotools.coverage.grid.GridCoverage2D raster)
    • asBase64

      public static String asBase64(org.geotools.coverage.grid.GridCoverage2D raster, int maxWidth) throws IOException
      Throws:
      IOException
    • asBase64

      public static String asBase64(org.geotools.coverage.grid.GridCoverage2D raster) throws IOException
      Throws:
      IOException
    • asMatrixPretty

      public static String asMatrixPretty(org.geotools.coverage.grid.GridCoverage2D raster, int band, int precision)
    • asMatrix

      public static String asMatrix(org.geotools.coverage.grid.GridCoverage2D raster, int band, int postDecimalPrecision)
    • asMatrix

      public static String asMatrix(org.geotools.coverage.grid.GridCoverage2D raster, int band)
    • asMatrix

      public static String asMatrix(org.geotools.coverage.grid.GridCoverage2D raster)
    • createHTMLString

      public static String createHTMLString(org.geotools.coverage.grid.GridCoverage2D raster, int imageWidth) throws IOException
      Throws:
      IOException
    • createHTMLString

      public static String createHTMLString(org.geotools.coverage.grid.GridCoverage2D raster) throws IOException
      Throws:
      IOException