PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_as_lwmpoint()

LWMPOINT * lwgeom_as_lwmpoint ( const LWGEOM lwgeom)
extern

Definition at line 270 of file lwgeom.c.

271{
272 if ( lwgeom == NULL ) return NULL;
273 if ( lwgeom->type == MULTIPOINTTYPE )
274 return (LWMPOINT *)lwgeom;
275 else return NULL;
276}
#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: