Skip to main content

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.

Sets the spatial reference system identifier (SRID) of the geometry.

Signatures

ST_SetSRID (A: Geometry, srid: Integer)

Parameters

A
Geometry
required
The input geometry.
srid
Integer
required
Spatial Reference Identifier.

Return type

The resulting geometry.

Example

SELECT ST_AsEWKT(ST_SetSRID(ST_GeomFromWKT('POLYGON((1 1, 8 1, 8 8, 1 8, 1 1))'), 3021))
SRID=3021;POLYGON ((1 1, 8 1, 8 8, 1 8, 1 1))