This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Why not displayed the elevation data in the osm in the converted map?

0

Using Java OpenStreetMap - Editor, I convert contour.osm into contour.map. As plugins, I use mapsforge-map-writer-master-20180501.133614-216-jar-with-dependencies.jar. The elevation data in the contour.osm is not displayed in the converted contour.map . What's the problem? Do you have any solution about this?

*Some of contour.osm is as following;
<osm version="0.6" generator="Global Mapper"> <bounds minlat="33.728736" minlon="126.356245" maxlat="33.730543" maxlon="126.359227"/> <node id="-534648673" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293008513" lon="126.3562448712"/> <node id="-534648674" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7292933559" lon="126.3562449265"/> <node id="-534648672" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293158565" lon="126.3562477517"/> <node id="-534648675" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7292883733" lon="126.3562479546"/> <node id="-534648676" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7292846400" lon="126.3562509735"/> <node id="-534648668" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293783469" lon="126.3562532728"/> <node id="-534648669" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293733500" lon="126.3562533097"/> <node id="-534648677" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7292809067" lon="126.3562539924"/> <node id="-534648667" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293846074" lon="126.3562562179"/> <node id="-534648666" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293958649" lon="126.3562591261"/> <node id="-534648671" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1" lat="33.7293433971" lon="126.3562595136"/>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<way id="-52607" timestamp="2018-04-23T20:09:19Z" uid="217598" user="ajiandachi" version="1"> <nd ref="-534650507"/> <nd ref="-534650508"/> <nd ref="-534650509"/> <nd ref="-534650510"/> <nd ref="-534650511"/> <nd ref="-534650512"/> <nd ref="-534650513"/> <nd ref="-534650514"/> <nd ref="-534650515"/> <nd ref="-534650516"/> <nd ref="-534650517"/> <nd ref="-534650518"/> <nd ref="-534650519"/> <nd ref="-534650520"/> <nd ref="-534650521"/> <nd ref="-534650522"/> <nd ref="-534650523"/> <nd ref="-534650524"/> <nd ref="-534650525"/> <nd ref="-534650526"/> <nd ref="-534650527"/> <nd ref="-534650528"/> <nd ref="-534650529"/> <nd ref="-534650507"/> <tag k="contour_ext" v="elevation_major"/> <tag k="ele" v="80"/> <tag k="contour" v="elevation"/> </way> </osm>

asked 17 May '18, 12:51

DjIm's gravatar image

DjIm
21113
accept rate: 0%

edited 17 May '18, 13:50

That snippet of your .osm file doesn't have any elevation data in it. Can you give an example of something (and OSM object ID, perhaps) that does have elevation data?

(17 May '18, 13:05) SomeoneElse ♦

Elevation data inserted

(17 May '18, 13:52) DjIm

Source code available on GitHub .