PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 233 of file lwgeom.c.

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:88
uint8_t type
Definition: liblwgeom.h:399

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().

Here is the caller graph for this function: