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

marqqs at gmx.eu marqqs at gmx.eu
Wed Feb 8 20:38:01 GMT 2012


Hi Ciprian,

sorry, I got you wrong.

Now it's clear which ways you want to exclude, but I'm still not sure which nodes you want have and which nodes you don't.

You want to exclude landuse-ways with all their nodes?
BUT you do NOT want to exclude that nodes of landuse-ways which have at least one node-owned tag?

Markus

-------- Original-Nachricht --------
> Datum: Wed, 8 Feb 2012 22:25:19 +0200
> Von: Ciprian Talaba <cipriantalaba at gmail.com>
> An: marqqs at gmx.eu
> CC: dev at openstreetmap.org
> Betreff: Re: [OSM-dev] Filtering out elements from a planet extract

> Hi Markus,
> 
> The scope is to keep everything BUT the landuse ways and corresponding
> nodes. I've tried like this:
> 
> osmfilter32 input.o5m  --drop-ways="landuse=" --out-o5m >output.o5m
> 
> Thanks,
> --Ciprian
> 
> On Wed, Feb 8, 2012 at 10:19 PM,  <marqqs at gmx.eu> wrote:
> > Hi,
> >
> >> 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.
> >
> > how did your command line look like? This should work:
> >
> >  osmfilter input_data.osm --keep="landuse=" -o=output_data.osm
> >
> > If you do NOT want to include nodes and relations on the base of their
> own landuse tags, enter this:
> >
> >  osmfilter input_data.osm --keep-ways="landuse="
> --keep-nodes-relations="" -o=output_data.osm
> >
> > Markus



More information about the dev mailing list