1422 VectorTile__Tile *tile;
1425 if (tile1->n_layers == 0 && tile2->n_layers == 0)
1427 else if (tile1->n_layers == 0)
1429 else if (tile2->n_layers == 0)
1432 tile = palloc(
sizeof(VectorTile__Tile));
1433 vector_tile__tile__init(tile);
1434 tile->layers = palloc(
sizeof(
void*));
1438 for (i = 0; i < tile1->n_layers; i++)
1440 for (j = 0; j < tile2->n_layers; j++)
1442 VectorTile__Tile__Layer *l1 = tile1->layers[i];
1443 VectorTile__Tile__Layer *l2 = tile2->layers[j];
1444 if (strcmp(l1->name, l2->name)==0)
1449 tile->layers[tile->n_layers++] = layer;
1451 tile->layers = repalloc(tile->layers, (tile->n_layers+1) *
sizeof(
void*));
static VectorTile__Tile__Layer * vectortile_layer_combine(const VectorTile__Tile__Layer *layer1, const VectorTile__Tile__Layer *layer2)