Skip to content

RS_SetCRS

Sets the Coordinate Reference System (CRS) for a raster.

Usage

raster RS_SetCRS(rast: raster, target_crs: string)

Arguments

  • rast (raster): Input raster
  • target_crs (string)

Description

Sets a CRS on a raster. This is metadata-only: raster cell values and geotransform are not transformed.

Examples

SELECT RS_SetCRS(RS_Example(), 'EPSG:4326');
┌─────────────────────────────────────────────────────────────────────────────┐
│                  rs_setcrs(rs_example(),Utf8("EPSG:4326"))                  │
│                                    raster                                   │
╞═════════════════════════════════════════════════════════════════════════════╡
│ [64x32/3] @ [43.08 79.07 203.07999999999998 207.07] skew=(1, 1) / OGC:CRS84 │
└─────────────────────────────────────────────────────────────────────────────┘