Returns a string, that when printed, outputs the raster band as a pretty printed 2D matrix. All the values of the raster are cast to double for the string. RS_AsMatrix allows specifying the number of digits to be considered after the decimal point. RS_AsMatrix expects a raster, and optionally a band (default: 1) and postDecimalPrecision (default: 6). The band parameter is 1-indexed.Documentation Index
Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
Use this file to discover all available pages before exploring further.
If the provided band is not present in the raster, RS_AsMatrix throws an IllegalArgumentException
If the provided raster has integral values, postDecimalPrecision (if any) is simply ignored and integers are printed in the resultant string
If you are using JavaPythonThe
show() to display the output, it will show special characters as escape sequences. To get the expected behavior use the following code:Scalasample() function is only there to reduce the data sent to collect(), you may also use filter() if that’s appropriate.Signatures
Parameters
The input raster.
The band index.
The post decimal precision value.
Return type
A string representation.

