- AutorBeiträge
- September 20, 2024 um 09:10 Uhr #56433FetnatTeilnehmer
Hello,
After a few attempts I managed to generate mapsforge using the following process:
1) Extraction of the osm.pbf file from Geofabrik.de
2) application of tagtransform.xml from Openandromaps with osmosis
3) add the ‘peak_psd’ tag and a few personal ‘translations’ using pyosmium.
4) creation of contour lines with pyhgtmap (pyhgtmap).
5) merge of contours and main file with osmium-tools
6) creation of *.map with osmosis and Openandromaps‘ slightly modified tag-mapping.xml.
Processing baden-wuerttemberg-latest.osm.pbf took 1h45 on a small PC with an intel N100 CPU, 16GB memory and SSD under Linux.
The size of the map is 480 MB compared with 960 MB for Baden-Wuerttemberg_oam.osm.map. Have I missed something?
I’m interested in your approach to adding ‘waymarked trails’ and ‘trail markings’.
According to the messages displayed on the console, osmosis mapfile-writer processes ‘relationships’ at a given time, but the mapsforge format only takes into account nodes and ways. Do you know what the program does at this point?
As a solution, I thought of adding all the ‘ways’ that are members of a ‘relation’ to create a new type of way with particular tags (including k=‘highway’ v=‘hk_lwn….hk_iwn’ ), is this a good idea?
Can you give me some information on how to create Hiking routes?Also, does the VTM renderer have an attribute such as curve=‘cubic’ like the mapsforge style sheets?
Thanks in advance,
Best regards,Translated with DeepL.com (free version)
September 20, 2024 um 10:45 Uhr #56434EmuxTeilnehmer> does the VTM renderer have an attribute such as curve=‘cubic’ like the mapsforge style sheets?
No, VTM uses OpenGL rendering, so it’s not possible to do all the render tricks of Mapsforge.
Although VTM already renders labels on curves.Mapsforge now has native map rotation, so there’s less reason to mess with OpenGL limitations. See here:
Cruiser and Mapsforge developerSeptember 20, 2024 um 17:06 Uhr #56436FetnatTeilnehmerHello,
Thank you for your reply, you’re right Mapsforge is very good and I use it with great satisfaction with openandromaps.
But I discovered by chance that using mapsforge style sheets with Oruxmaps VTM gives you almost all the advantages:
* Zoom much, much smoother than with mapsforge
* Simpler style.xml because VTM scales all the elements, so less <rule> to take account of zoom levels
* Display of contour lines and shading thanks to mapsforge.For my part, all I’m missing is the aesthetic possibility of making contour lines, highways and cliffs more rounded.
In the meantime I’m going to try a program that ‘blurs’ the dem files before extracting the curves using pyhgtmap.Congratulations again on these wonderful tools.
Translated with DeepL.com (free version)
- AutorBeiträge
- Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.