PostGIS  3.4.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 contains(), coveredby(), covers(), do_median_test(), geography_centroid(), lwgeom_boundary(), LWGEOM_line_from_mpoint(), lwgeom_median(), ShpLoaderGenerateShapeRow(), and ST_Intersects().

Here is the caller graph for this function: