PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ mvt_ctx_combine()

mvt_agg_context* mvt_ctx_combine ( mvt_agg_context ctx1,
mvt_agg_context ctx2 
)

Definition at line 1264 of file mvt.c.

1265 {
1266  if (ctx1 || ctx2)
1267  {
1268  if (ctx1 && ! ctx2) return ctx1;
1269  if (ctx2 && ! ctx1) return ctx2;
1270  if (ctx1 && ctx2 && ctx1->tile && ctx2->tile)
1271  {
1272  mvt_agg_context *ctxnew = palloc(sizeof(mvt_agg_context));
1273  memset(ctxnew, 0, sizeof(mvt_agg_context));
1274  ctxnew->tile = vectortile_tile_combine(ctx1->tile, ctx2->tile);
1275  return ctxnew;
1276  }
1277  else
1278  {
1279  elog(DEBUG2, "ctx1->tile = %p", ctx1->tile);
1280  elog(DEBUG2, "ctx2->tile = %p", ctx2->tile);
1281  elog(ERROR, "%s: unable to combine contexts where tile attribute is null", __func__);
1282  return NULL;
1283  }
1284  }
1285  else
1286  {
1287  return NULL;
1288  }
1289 }
static VectorTile__Tile * vectortile_tile_combine(VectorTile__Tile *tile1, VectorTile__Tile *tile2)
Definition: mvt.c:1225
VectorTile__Tile * tile
Definition: mvt.h:80

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: