Skip to main content
Returns a binary DataFrame from a Raster DataFrame. Each raster object in the resulting DataFrame is an ArcGrid image in binary format. ArcGrid only takes 1 source band. If your raster has multiple bands, you need to specify which band you want to use as the source.

Signatures

RS_AsArcGrid(raster: Raster)
RS_AsArcGrid(raster: Raster, sourceBand: Integer)

Parameters

raster
Raster
required
The input raster.
sourceBand
Integer
default:"0"
The source band index to use. Accepts any non-negative value (>=0). If not given, it will use Band 0.

Return type

The raster in ArcGrid binary format.

Examples

SELECT RS_AsArcGrid(raster) FROM my_raster_table
SELECT RS_AsArcGrid(raster, 1) FROM my_raster_table
+--------------------+
|             arcgrid|
+--------------------+
|[4D 4D 00 2A 00 0...|
+--------------------+