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

Return the number of dimensions (2, 3, 4) in a geometry.

Definition at line 806 of file lwgeom.c.

References LWGEOM::flags, and FLAGS_NDIMS.

Referenced by RASTER_asRaster(), RASTER_clip(), RASTER_nearestValue(), and RASTER_setPixelValuesGeomval().

807 {
808  if ( ! geom ) return 0;
809  return FLAGS_NDIMS(geom->flags);
810 }
uint8_t flags
Definition: liblwgeom.h:353
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118

Here is the caller graph for this function: