PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum linemerge ( PG_FUNCTION_ARGS  )

Definition at line 3183 of file postgis/lwgeom_geos.c.

References geometry_serialize(), lwgeom_free(), lwgeom_from_gserialized(), and lwgeom_linemerge().

3184 {
3185  GSERIALIZED *geom1;
3186  GSERIALIZED *result;
3187  LWGEOM *lwgeom1, *lwresult ;
3188 
3189  geom1 = PG_GETARG_GSERIALIZED_P(0);
3190 
3191 
3192  lwgeom1 = lwgeom_from_gserialized(geom1) ;
3193 
3194  lwresult = lwgeom_linemerge(lwgeom1);
3195  result = geometry_serialize(lwresult) ;
3196 
3197  lwgeom_free(lwgeom1) ;
3198  lwgeom_free(lwresult) ;
3199 
3200  PG_FREE_IF_COPY(geom1, 0);
3201 
3202  PG_RETURN_POINTER(result);
3203 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1137
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
LWGEOM * lwgeom_linemerge(const LWGEOM *geom1)

Here is the call graph for this function: