2460{
2463
2464 geom1 = PG_GETARG_GSERIALIZED_P(0);
2465
2467
2470
2471 if ( ! lwgeom_out )
2472 {
2473 PG_FREE_IF_COPY(geom1, 0);
2474 PG_RETURN_NULL();
2475 }
2476
2477 out = geometry_serialize(lwgeom_out);
2479
2480 PG_FREE_IF_COPY(geom1, 0);
2481 PG_RETURN_POINTER(out);
2482}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
LWGEOM * lwgeom_node(const LWGEOM *lwgeom_in)
void lwgeom_free(LWGEOM *geom)