Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tag 'bicycle' not imported properly #33

Closed
benjamin-rty opened this issue Jul 15, 2014 · 2 comments
Closed

tag 'bicycle' not imported properly #33

benjamin-rty opened this issue Jul 15, 2014 · 2 comments

Comments

@benjamin-rty
Copy link

While importing pbf data, the tag 'bicycle' (and perhaps other tags) are not imported properly into the database.
For example: the value 'no' for osm_id 239933035 resulted in a empty string in the database.

my json file below:

{"tables": {
"roads": {
"fields": [
{"type": "id", "name": "osm_id","key": null},
{"type": "geometry","name": "geometry","key": null},
{"type": "mapping_value","name": "type","key": null},
{"type": "string","name": "name","key": null},
{"type": "boolint","name": "tunnel","key": null},
{"type": "boolint","name": "bridge","key": null},
{"type": "string","name": "smoothness","key": null},
{"type": "string","name": "cycleway","key": null},
{"type": "string","name": "bicycle","key": null}
]
}
}

What is wrong ?
Thank you for your investigation.

@olt
Copy link
Member

olt commented Jul 15, 2014

Your fields mapping is incomplete: name is the column name and key is the OSM tag key. So it's:

{"type": "string","name": "bicycle","key": "bicycle"}

@benjamin-rty
Copy link
Author

OK. Thanks, stupid mistake...
I was confused with the "key":null for "type":"mapping_key" for example.
Thank you very much for your quick replay !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants