PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 242 of file lwgeom.c.

243 {
244  if ( lwgeom == NULL ) return NULL;
245  if ( lwgeom->type == MULTIPOINTTYPE )
246  return (LWMPOINT *)lwgeom;
247  else return NULL;
248 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:105
uint8_t type
Definition: liblwgeom.h:462

References MULTIPOINTTYPE, and LWGEOM::type.

Referenced by do_median_test(), geography_centroid(), itree_pip_contains(), itree_pip_covers(), itree_pip_intersects(), lwgeom_boundary(), LWGEOM_line_from_mpoint(), lwgeom_median(), and ShpLoaderGenerateShapeRow().

Here is the caller graph for this function: