PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 201 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().

202 {
203  if ( lwgeom == NULL ) return NULL;
204  if ( lwgeom->type == MULTIPOINTTYPE )
205  return (LWMPOINT *)lwgeom;
206  else return NULL;
207 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:88
uint8_t type
Definition: liblwgeom.h:396
Here is the caller graph for this function: