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

Definition at line 152 of file lwgeom.c.

References MULTIPOINTTYPE, and LWGEOM::type.

Referenced by LWGEOM_line_from_mpoint(), and ShpLoaderGenerateShapeRow().

153 {
154  if ( lwgeom == NULL ) return NULL;
155  if ( lwgeom->type == MULTIPOINTTYPE )
156  return (LWMPOINT *)lwgeom;
157  else return NULL;
158 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:73
uint8_t type
Definition: liblwgeom.h:380

Here is the caller graph for this function: