PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 165 of file lwgeom.c.

References MULTIPOINTTYPE, and LWGEOM::type.

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

166 {
167  if ( lwgeom == NULL ) return NULL;
168  if ( lwgeom->type == MULTIPOINTTYPE )
169  return (LWMPOINT *)lwgeom;
170  else return NULL;
171 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:87
uint8_t type
Definition: liblwgeom.h:395
Here is the caller graph for this function: