Skip to content
πŸŽ‰ Apache Sedona 1.9.1 is out now! πŸ—ΊοΈ Geography SQL functions, Box2D & Box3D types, raster Python UDFs & more. Read the release notes β†’

RS_SRID

Introduction: Returns the spatial reference system identifier (SRID) of the raster geometry. Returns 0 if the raster has no CRS defined or if the CRS is a custom (non-EPSG) coordinate reference system. To retrieve the full CRS definition for custom CRS, use RS_CRS.

Format: RS_SRID (raster: Raster)

Return type: Integer

Since: v1.4.1

SQL Example

SELECT RS_SRID(raster) FROM raster_table

Output:

3857