Name

ST_SetSRID, st_setsrid — replaces the SRID of a shape but does not transform the shape or its coordinates from old SRID to a new one.

Synopsis

ST_SetSRID( in g any,
  in SRID int);
 

Description

The geometry given as argument is modified to have the specified SRID and the modified geometry is returned.

Parameters

g

The geometry to be modified.

SRID

The specified SRID.

Return Types

Returns any.

Examples

Example 24.150. Simple Use

SQL>SELECT ST_SetSRID( st_point (10,2), 4335);
callret
ANY
_______________________________
POINT(0.0197 51.1005)
No. of rows in result: 1


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®