PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ mvt_ctx_combine()

mvt_agg_context * mvt_ctx_combine ( mvt_agg_context ctx1,
mvt_agg_context ctx2 
)

Definition at line 1548 of file mvt.c.

1549{
1550 if (ctx1 || ctx2)
1551 {
1552 if (ctx1 && ! ctx2) return ctx1;
1553 if (ctx2 && ! ctx1) return ctx2;
1554 if (ctx1 && ctx2 && ctx1->tile && ctx2->tile)
1555 {
1556 mvt_agg_context *ctxnew = palloc(sizeof(mvt_agg_context));
1557 memset(ctxnew, 0, sizeof(mvt_agg_context));
1558 ctxnew->tile = vectortile_tile_combine(ctx1->tile, ctx2->tile);
1559 return ctxnew;
1560 }
1561 else
1562 {
1563 elog(DEBUG2, "ctx1->tile = %p", ctx1->tile);
1564 elog(DEBUG2, "ctx2->tile = %p", ctx2->tile);
1565 elog(ERROR, "%s: unable to combine contexts where tile attribute is null", __func__);
1566 return NULL;
1567 }
1568 }
1569 else
1570 {
1571 return NULL;
1572 }
1573}
static VectorTile__Tile * vectortile_tile_combine(VectorTile__Tile *tile1, VectorTile__Tile *tile2)
Definition mvt.c:1509
VectorTile__Tile * tile
Definition mvt.h:68

References mvt_agg_context::tile, and vectortile_tile_combine().

Referenced by pgis_asmvt_combinefn().

Here is the call graph for this function:
Here is the caller graph for this function: