I am in the western US. The standard downloadable contour SRTM files are rendered in meters rather than the desired feet so using strm2osm I have created my own custom SRTM contour files using major elevation of 1000
feet, step 50
feet.
These were originally created for use with ORUXMaps in .map vector format and converting the .osm format to .obf using OSMAndMapCreator worked properly showing contour lines without changes to the rendering_types.xml -- except I do not see the elevation text rendered on the contour lines.
The question is then, what tags are needed or used in the source .osm data (see sample below) that will be properly converted to display elevation text properly in .obf format ?
or alternately are there special tag handling descriptions in the rendering_types.xml and or default.render.xml used for displaying contour line elevation text?
such as: <type tag="contour" value="elevation" minzoom="11" nameTags="ele"/>
Bob
(
wb6...@gmail.com)
Excerpt from a str2osm generated srtm.osm file:
<way id="1000004135" version="1" timestamp="1-01-03T08:00:00Z">
<nd ref="2000607576"/>
<nd ref="2000607577"/>
<nd ref="2000607578"/>
<nd ref="2000607579"/>
<nd ref="2000607580"/>
<nd ref="2000607581"/>
<nd ref="2000607582"/>
<nd ref="2000607583"/>
<nd ref="2000607584"/>
<nd ref="2000607585"/>
<nd ref="2000607586"/>
<nd ref="2000607587"/>
<nd ref="2000607588"/>
<nd ref="2000607589"/>
<nd ref="2000607590"/>
<nd ref="2000607591"/>
<nd ref="2000607592"/>
<nd ref="2000607593"/>
<nd ref="2000607576"/>
<tag k="ele" v="12680"/>
<tag k="contour" v="elevation"/>
<tag k="contour_ext" v="elevation_minor"/>
</way>
From my default.render xml file:
<!-- Natural -->
<group>
<filter contourLines="11" minzoom="12" textSize="12" textColor="#444444" textOnPath="true" tag="contour" value=""/>
<filter contourLines="12" minzoom="13" textSize="12" textColor="#444444" textOnPath="true" tag="contour" value=""/>
<filter contourLines="13" minzoom="13" textSize="12" textColor="#444444" textOnPath="true" tag="contour" value=""/>
<filter contourLines="14" minzoom="14" textSize="12" textColor="#444444" textOnPath="true" tag="contour" value=""/>
<filter contourLines="15" minzoom="15" textSize="12" textColor="#444444" textOnPath="true" tag="contour" value=""/>
<filter contourLines="16" minzoom="16" textSize="12" textColor="#444444" textOnPath="true" tag="contour" value=""/>
<groupFilter nightMode="true" textColor="#777777"/>
</group>