370 GSERIALIZED *pg_geom_in = PG_GETARG_GSERIALIZED_P(0);
376 PG_RETURN_POINTER(pg_geom_in);
380 pg_geom_out = geometry_serialize(lwg_out);
384 PG_FREE_IF_COPY(pg_geom_in, 0);
385 PG_RETURN_POINTER(pg_geom_out);
int gserialized_ndims(const GSERIALIZED *g)
Return the number of dimensions (2, 3, 4) in a geometry.
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_force_2d(const LWGEOM *geom)
Strip out the Z/M components of an LWGEOM.