cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine a spatial columns srid

patrick28
Explorer
0 Kudos

Hi Spatial Experts,

What is the best way to determine the srid of an st_geometry column?

I could not find any metadata for an st_geometry column that includes the srid.

Regards,

Patrick

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor
0 Kudos

Hello Patrick,

you can determine the Spatial Reference Identifier using method ST_SRID. This method applied to a spatial column returns the SRID.

Regards,

Florian

patrick28
Explorer
0 Kudos

Hi Florian,

I understand you can do ST_Srid() as in

     SELECT geom.ST_Srid() FROM mytable;

But what about metadata?

E.g. if a table is create as in

     CREATE COLUMN TABLE mytable(geom st_geometry(28992))

No records have been inserted, yet...how do I get the srid of the column?

Patrick

pfefferf
Active Contributor
0 Kudos

Ok, for that you can use system view ST_GEOMETRY_COLUMNS.

Answers (0)