PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwmpoint()

LWMPOINT* lwgeom_as_lwmpoint ( const LWGEOM lwgeom)

Definition at line 224 of file lwgeom.c.

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

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: