[OSM-dev] Quick way to remove specific nodes/ways/relations with osmium?
Craig Durkin
craigdurkin at gmail.com
Thu Mar 11 14:38:04 UTC 2021
Hi OSM folks -- I'm a regular user of Osmium for doing some filtering of
bicycle-accessible ways in OSM as part of an app I'm making. There are
plenty of tags (bicycle=no, bicycle=sidepath, etc.) that I can successfully
filter with "osmium tags-filter", but is there a similar way to filter by
OSM ID?
There are specific ways that are correctly tagged on OSM as being bicycle
accessible, but my users would like them removed from the app for various
reasons, so changing the tagging on OSM would not be the right way to
achieve this.
I have created a basic solution with pyosmium that reads a file and then
writes only those nodes/ways/relations that aren't in a 'forbidden' list,
but it is quite slow compared to native osmium commands, especially with
country-sized extracts.
Is there a way to do something like "osmium id-filter w12134567", or should
I just upgrade my tool to C and use libosmium instead?
Thanks,
Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20210311/691f8216/attachment.htm>
More information about the dev
mailing list