PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 225 of file lwgeom.c.

226 {
227  if ( lwgeom == NULL ) return NULL;
228  if ( lwgeom->type == MULTIPOINTTYPE )
229  return (LWMPOINT *)lwgeom;
230  else return NULL;
231 }
#define MULTIPOINTTYPE
Definition: liblwgeom.h:119
uint8_t type
Definition: liblwgeom.h:476

References MULTIPOINTTYPE, and LWGEOM::type.

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

Here is the caller graph for this function: