PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 232 of file lwgeom.c.

References MULTIPOINTTYPE, and LWGEOM::type.

Referenced by contains(), coveredby(), covers(), geography_centroid(), geos_intersects(), LWGEOM_line_from_mpoint(), lwgeom_median(), and ShpLoaderGenerateShapeRow().

233 {
234  if ( lwgeom == NULL ) return NULL;
235  if ( lwgeom->type == MULTIPOINTTYPE )
236  return (LWMPOINT *)lwgeom;
237  else return NULL;
238 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:87
uint8_t type
Definition: liblwgeom.h:395

Here is the caller graph for this function: