PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ lwgeom_get_srid()

int32_t lwgeom_get_srid ( const LWGEOM geom)

Return SRID number.

Definition at line 927 of file lwgeom.c.

928 {
929  if ( ! geom ) return SRID_UNKNOWN;
930  return geom->srid;
931 }
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:230
int32_t srid
Definition: liblwgeom.h:475

References LWGEOM::srid, and SRID_UNKNOWN.

Referenced by geography_centroid(), gserialized_list_union(), lwgeom_boundary(), LWGEOM_expand(), lwgeom_voronoi_diagram(), lwline_locate_along(), lwmline_locate_along(), lwmpoint_locate_along(), lwpoint_locate_along(), lwpoly_to_points(), ST_Hexagon(), ST_Square(), test_lwpoly_construct_circle(), and TWKBFromLWGEOMArray().

Here is the caller graph for this function: