Skip to main content
Returns the georeference metadata of raster as a string in GDAL or ESRI format. Default is GDAL if not specified. For more information about ScaleX, ScaleY, SkewX, SkewY, please refer to the Affine Transformations section.
If you are using show() to display the output, it will show special characters as escape sequences. To get the expected behavior use the following code:Scala
Java
Python
The sample() function is only there to reduce the data sent to collect(), you may also use filter() if that’s appropriate.
RS_GeoReference

Signatures

Parameters

raster
Raster
required
The input raster.
format
String
default:"\"GDAL\""
The output format. Either "GDAL" or "ESRI". Defaults to "GDAL".

Return type

A string representation.

Examples

ESRI