1512 VectorTile__Tile *tile;
1515 if (tile1->n_layers == 0 && tile2->n_layers == 0)
1517 else if (tile1->n_layers == 0)
1519 else if (tile2->n_layers == 0)
1522 tile = palloc(
sizeof(VectorTile__Tile));
1523 vector_tile__tile__init(tile);
1524 tile->layers = palloc(
sizeof(
void*));
1528 for (i = 0; i < tile1->n_layers; i++)
1530 for (j = 0; j < tile2->n_layers; j++)
1532 VectorTile__Tile__Layer *l1 = tile1->layers[i];
1533 VectorTile__Tile__Layer *l2 = tile2->layers[j];
1534 if (strcmp(l1->name, l2->name)==0)
1539 tile->layers[tile->n_layers++] = layer;
1541 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)