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

Minimize map detail on some areas

0

I have a map of a country in OSM XML format, and before using it in application, to minimize resulting file size, I would like to minimize detail or remove map data from areas, that are not important. E.g. leave detailed data on some major cities and display only forests and highways in other areas. What tools should I use to achieve it? Is there any way to automate this task, so map could be updated more often?

asked 26 May '13, 09:57

joshas's gravatar image

joshas
11112
accept rate: 0%


One Answer:

0

The first tool you should try is osmfilter.

But is has no easy way to filter different regions of one raw *.osm file in a different manner.

YOu can only try to cut your region into pieces, do different filtering, and finally combine your parts to a new single osm file. But there can be sources for errors when combining these files.

answered 29 May '13, 18:31

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

Source code available on GitHub .