PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_get_srid()

int32_t lwgeom_get_srid ( const LWGEOM geom)

Return SRID number.

Definition at line 822 of file lwgeom.c.

References LWGEOM::srid, and SRID_UNKNOWN.

Referenced by lwgeom_delaunay_triangulation(), lwgeom_offsetcurve(), lwline_locate_along(), lwmline_locate_along(), lwmpoint_locate_along(), lwpoint_locate_along(), and TWKBFromLWGEOMArray().

823 {
824  if ( ! geom ) return SRID_UNKNOWN;
825  return geom->srid;
826 }
int32_t srid
Definition: liblwgeom.h:383
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:172
Here is the caller graph for this function: