[OSM-dev] Filtering out elements from a planet extract

Ciprian Talaba cipriantalaba at gmail.com
Wed Feb 8 19:39:30 GMT 2012


Hi,

I am trying to filter our the "landuse=*" ways and the corresponding
nodes from a planet extract. I need this in order to import less data
into a PostGIS database to speed up some processing going on after the
import. I have tried osmosis but I did not find a decent way to remove
all the nodes corresponding to the removed ways without removing other
important data (like POIs).
I tried to do it the other way around by keeping only the landuse data
and the corresponding ways and it's about 50% of the original extract
so I would expect some improvement on the final processing if I manage
to get this working. Unfortunately osmosis does not have a "diff"
command (only merge) so I can't get the ways I am interested.

I then tried with osmfilter but I don't think I found the right way to
do it since the output file is only marginally smaller than the
original.

If anyone have done something similar (you can replace landuse with
pretty much anything) I would appreciate any hint.

Thanks,
Ciprian



More information about the dev mailing list