Closed iandees closed 2 years ago
According to osmium help export:
Another option is to specify attributes list in a comma-separated string for the --attributes/-a command-line op‐
tion. This way you cannot control column names, but also you won’t have to create a config file.
As mentioned by @iandees , this worked fine for me on Ubuntu 20.04 using osmium tool 1.13.1, but for some reason it didn't work on macos.
The option --attributes
is not yet in a released version, only in master
. Everybody reporting this as working in 1.13.1 probably has compiled the master version which will report something like osmium version 1.13.1 (v1.13.1-14-ga3516c1-changed)
so you might easily think you are on 1.13.1 but you aren't.
Ah that makes sense. I see now that attributes was only added in 5f8c8d6dfe5b278ffd45c46a4dd9d460d364d0ab , and 1.13.1 was released a few weeks earlier.
I'm trying to run an
osmium export
with the@type
and@id
properties added to the output. The documentation says to specify this via a config file that you then specify via a command line argument. To simplify my script, I asked on the OSM US Slack if there was a way to specify those attributes on the CLI directly instead of setting up a config file. @mmd-osm said to use--attributes
and gave several examples of it working on their machine with Osmium 1.13.1. This flag isn't in the documentation and doesn't work for me:On my Mac with osmium-tool installed via
brew install osmium-tool
, I get v1.13.1:What am I missing?