Bug report #19633

Not Importing "Ele" Tag when reading OSM Data

Added by Kenneth Gibson almost 2 years ago. Updated almost 2 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/OGR
Affected QGIS version:3.2.1 Regression?:No
Operating System:Windows 7 Easy fix?:No
Pull Request or Patch supplied:No Resolution:up/downstream
Crashes QGIS or corrupts data:No Copied to github as #:27460

Description

When adding OSM layers to QGIS in either PBF or OSM format, the ELE (elevation) tag in nodes is not being imported. This has been tested in version 2.14 and 3.2.

Take an example of Uhuru Peak (Kilimanjaro) which has osm_id 32059197. The raw tags in the OSM file are:
_ <tag k="description" v="Highest peak in Africa."/>
<tag k="ele" v="5895"/>
<tag k="is_in" v="Kilimanjaro National Park"/>
<tag k="is_in:country" v="Tanzania"/>
<tag k="name" v="Uhuru Peak"/>
<tag k="name:cs" v="Kilimandžáro"/>
<tag k="name:en" v="Kilimanjaro"/>
<tag k="name:ku" v="Kilîmanjaro"/>
<tag k="natural" v="peak"/>
<tag k="old_name" v="Kaiser-Wilhelm-Spitze"/>
<tag k="url" v="http://www.ultimatekilimanjaro.com/index.htm"/>
<tag k="volcano:status" v="dormant"/>
<tag k="volcano:type" v="stratovolcano"/>
<tag k="website" v="http://www.kilimanjaroroutes.com/"/>
<tag k="wikidata" v="Q7296"/>
<tag k="wikipedia" v="en:Mount Kilimanjaro"/>_
But this only converts to the following in the OTHER_TAGS attibute in QGIS...
"description"=>"Highest peak in Africa.","is_in:country"=>"Tanzania","name:cs"=>"Kilimandžáro","name:en"=>"Kilimanjaro","name:ku"=>"Kilîmanjaro","natural"=>"peak","old_name"=>"Kaiser-Wilhelm-Spitze","url"=>"http://www.ultimatekilimanjaro.com/index.htm","volcano:status"=>"dormant","volcano:type"=>"stratovolcano","website"=>"http://www.kilimanjaroroutes.com/","wikidata"=>"Q7296","wikipedia"=>"en:Mount Kilimanjaro"
You can see that every tag except "ele" has been imported.

This same bug was found when using ogr2ogr to import OSM data into a PostgreSQL database.

History

#1 Updated by Giovanni Manghi almost 2 years ago

  • Resolution set to up/downstream
  • Status changed from Open to Closed

If also OGR does not work as expected then is an OGR bug, not QGIS (as QGIS reads this formats with OGR).

Also available in: Atom PDF