elevation text on contour lines

159 views
Skip to first unread message

王天利

unread,
Sep 19, 2016, 12:35:03 AM9/19/16
to mapsforge-dev

Hi, I used OpenStreetMap Osmosis Tool and Mapsforge Map-Writer to generate OSM data files along with SRTM 3 DEM and Aster DEM V2 into maps.

The elevation text display at zoom level 16 above when using SRTM 3 DEM, but the elevation text display at zoom level 18 above when using Aster DEM V2. Is there any solution?

BTW, Green Tracks is my project. you can download it from google play.

Green Tracks support Mapsforge offline map. It's helpful for climbing and hiking.

Emux

unread,
Sep 19, 2016, 3:04:44 AM9/19/16
to mapsfo...@googlegroups.com
I'm aware that the line-symbols often disappear around zoom 16 (don't remember if we have it written in issues).

I don't have info about line labels.
What theme do you use and are you sure the tags in tag-mapping and theme are always correct in all cases?

BTW I added the app in the applications list.

--
Emux

Sky(王天利)

unread,
Sep 19, 2016, 4:24:44 AM9/19/16
to mapsforge-dev
Hi, Emux

Thanks for your fast answer.
I found below url had the same issue.

The theme I used is andromaps_hike.xml from openandromaps.

Please see tag-mapping in attached file.

RTMGL1_V3 elevation data sources have the same issue as ASTER V2.



王天利於 2016年9月19日星期一 UTC+8下午12時35分03秒寫道:
tag-mapping.xml

Rex Tsai

unread,
Sep 19, 2016, 6:59:40 AM9/19/16
to mapsforge-dev
Hi,

In current implementation, WayDecorator.renderText()[1] will find a long segment that fits the label.
Since it can not find a long enough segment in contour lines, the label can not be drawn.

It might need an algorithm to draw text along a curve.

[1] https://github.com/mapsforge/mapsforge/blob/master/mapsforge-map/src/main/java/org/mapsforge/map/layer/renderer/WayDecorator.java#L144
Cheers
-Rex

Sky(王天利)於 2016年9月19日星期一 UTC+8下午4時24分44秒寫道:

Emux

unread,
Sep 19, 2016, 7:07:53 AM9/19/16
to mapsfo...@googlegroups.com
Another hint would be any lines (that don't have crossroads) to be constructed by very few continuous segments.
A contour could be a single segment from start to end, that'd help the naming.

--
Emux
Reply all
Reply to author
Forward
0 new messages