PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 233 of file lwgeom.c.

References MULTIPOINTTYPE, and LWGEOM::type.

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

234 {
235  if ( lwgeom == NULL ) return NULL;
236  if ( lwgeom->type == MULTIPOINTTYPE )
237  return (LWMPOINT *)lwgeom;
238  else return NULL;
239 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:87
uint8_t type
Definition: liblwgeom.h:398
Here is the caller graph for this function: