Type conversion
Type conversion
Type conversion between GDAL and ARG types is currently not one-to-one This is in order to support GDAL to ARG type conversions in a way that allows the RasterType that is read from gdalinfo to be converted back to a GDAL type using gdal_translate to produce an ARG readable by geotrellis. One situation where this does not happen nicely is when the raster format read by gdalinfo specifies type 'Byte'. If we pass in 'Byte' to gdal_translate, the ARG type will end up bing uint8, which is currently unreadable by geotrellis. Because of this the convertToGdalType returns Int16 for a TypeByte.
Runs the gdalinfo command and gets the raster type and extent
Runs gdal_translate to convert a subset of a raster data file into ARG format based off of an offset and dimensions
Runs gdal_translate to convert a raster data file into ARG format.
Utility for running GDAL commands.