geometalab / Vector-Tiles-Reader-QGIS-Plugin

Vector Tiles Reader QGIS-Plugin - QGIS Python plugin which reads Mapbox Vector Tiles from a server, a local MBTiles file or a directory
http://plugins.qgis.org/plugins/vector_tiles_reader/
GNU General Public License v2.0
149 stars 30 forks source link

Union features intersecting several tiles #245

Open drnextgis opened 5 years ago

drnextgis commented 5 years ago

Is it possible to union features based on feature id values (FID)? It seems like "Merge tiles" doesn't respect that property. From here:

Although, you could use the id field in the protobuf to store information necessary for reconstructing polygons.

mnboos commented 5 years ago

If it was a feature id, that would really be unique per feature (even across tiles), then it would be possible and would even make more sense, than the current implementation. Currently, I merges based on location (i.e. overlapping), which is not only slow, but also error prone.

Unfortunately, the specification isn't really specific. Additionally, the feature id is optional.

drnextgis commented 5 years ago

I see. But the idea is to take into account feature IDs if they are existing.

mnboos commented 5 years ago

So the feature ID is unique per feature but same across tiles?

drnextgis commented 5 years ago

Exactly.