This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

how to split osm xml/pbf files by zoom lovel?

0

Is there a way to split osm xml/pbf files in small pieces by zoom level?

asked 13 Sep '13, 00:03

raku_cmr's gravatar image

raku_cmr
11335
accept rate: 0%

edited 06 May '14, 01:17

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

3

It would help if you could explain what you mean by "by zoom level". Do you mean "so that the resulting file contains all the data that is within the bounds of an OSM tile at zoom X" or "contains only the data that would be rendered by the standard map at zoom X"?

(13 Sep '13, 09:56) SomeoneElse ♦
1

I want the result osm file at certain zoom level to contain only the data that will be rendered by standard map at that zoom level

(13 Sep '13, 20:26) raku_cmr

IMHO such a splitting feature has necer been implemented in any solution.

If you want to filter raw OSM data, have a look at https://wiki.openstreetmap.org/wiki/Osmfilter

The "filtering" inside any rendering program is realized by style files ... there you define for each zoom level what raw data should be displayed, and what not.

(16 Sep '13, 16:42) stephan75

One Answer:

0

Use the search bar with the word 'split' and you find some similar questions, e.g.

https://help.openstreetmap.org/questions/14151/split-osm-file-without-fragmenting-ways-and-relations

answered 13 Sep '13, 09:38

Pieren's gravatar image

Pieren
9.8k2083157
accept rate: 15%

edited 13 Sep '13, 14:56

neuhausr's gravatar image

neuhausr
7.5k870121

Source code available on GitHub .