PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwgeom_has_srid ( const LWGEOM geom)

Return true or false depending on whether a geometry has a valid SRID set.

Definition at line 1272 of file lwgeom.c.

References LW_FALSE, LW_TRUE, LWGEOM::srid, and SRID_UNKNOWN.

Referenced by lwgeom_to_wkt(), and lwgeom_wkb_needs_srid().

1273 {
1274  if ( geom->srid != SRID_UNKNOWN )
1275  return LW_TRUE;
1276 
1277  return LW_FALSE;
1278 }
int32_t srid
Definition: liblwgeom.h:355
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:154

Here is the caller graph for this function: