ST_SETSRID
functionsupportedCore SQL functionsReturns a GEOMETRY object that has its SRID (spatial reference system identifier) set to the specified value. Use this function to change the SRID without affecting the coordinates of the object. If you also need to change the coordinates to match the new SRS (spatial reference system), use ST_TRANSFORM instead.
Syntax
ST_SETSRID( <geometry_expression> , <srid> )
Parameters
| Name | Required | Description |
|---|---|---|
geometry_expression | required | The argument must be an expression of type GEOMETRY. |
srid | required | The SRID to set in the returned GEOMETRY object. |
Returns
The function returns a value of type GEOMETRY.