PostGIS  2.5.0dev-r@@SVN_REVISION@@
int32_t lwgeom_get_srid ( const LWGEOM geom)

Return SRID number.

Definition at line 909 of file lwgeom.c.

References LWGEOM::srid, and SRID_UNKNOWN.

Referenced by geography_centroid(), lwgeom_centroid(), lwgeom_delaunay_triangulation(), LWGEOM_expand(), lwgeom_offsetcurve(), lwgeom_voronoi_diagram(), lwline_locate_along(), lwmline_locate_along(), lwmpoint_locate_along(), lwpoint_locate_along(), lwpoly_to_points(), test_lwpoly_construct_circle(), and TWKBFromLWGEOMArray().

910 {
911  if ( ! geom ) return SRID_UNKNOWN;
912  return geom->srid;
913 }
int32_t srid
Definition: liblwgeom.h:398
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:187

Here is the caller graph for this function: