PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_has_srid()

int lwgeom_has_srid ( const LWGEOM geom)

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

Definition at line 1387 of file lwgeom.c.

1388 {
1389  if ( geom->srid != SRID_UNKNOWN )
1390  return LW_TRUE;
1391 
1392  return LW_FALSE;
1393 }
#define LW_FALSE
Definition: liblwgeom.h:108
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:107
#define SRID_UNKNOWN
Unknown SRID value.
Definition: liblwgeom.h:229
int32_t srid
Definition: liblwgeom.h:446

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

Referenced by lwgeom_to_wkt(), and lwgeom_wkb_needs_srid().

Here is the caller graph for this function: