PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 1495 of file lwgeom.c.

1496{
1497 if ( geom->srid != SRID_UNKNOWN )
1498 return LW_TRUE;
1499
1500 return LW_FALSE;
1501}
#define LW_FALSE
Definition liblwgeom.h:94
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
#define SRID_UNKNOWN
Unknown SRID value.
Definition liblwgeom.h:215
int32_t srid
Definition liblwgeom.h:460

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

Referenced by lwgeom_to_wkt_internal(), and lwgeom_wkb_needs_srid().

Here is the caller graph for this function: