Hi everyone.

I'm working on a 3D earth rendering engine and I want to use osm data for forest, cities, roads, etc... Of course it involves a lot preprocessing to filter and convert vector data into OpenGL friendly format.

My plan is to :
- exploit a planet sized pbf file
- cut it into 1° tiles using osmosis
- filter and extract the data from these tiles as shapefiles using libosmium
- rasterize these shapefiles with gdal

My problem occurs when trying to cut the big PBF file into tiles.
I can't find an efficient way to prevent the elements from being clipped on the edges of the tiles.

I've tried to use completeWays=yes and completeRelations=yes but the first tile was still empty after a few hours when it took 6 minutes to process it without these options.

The only way I can see to limit the damage is to set a wider bounding box than necessary but there will always be a polygon bigger than my margin that will be clipped, and the size of my tiles is also greatly impacted.

Do you have any suggestion about this ?

Thanks.



_______________________________________________
osmosis-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to