- AutorBeiträge
- April 29, 2015 um 22:49 Uhr #4617GinaTeilnehmer
Hello,
is there any tutorial about how to create your own .map files?This way, we would be able to reduce the load on the server, build maps with the update frequency we need, and also – maybe – use the best DEM data available for any area. For instance, I would create a northern Italy map that uses viewfinderpanoramas elevation model where available (as in the „Alps“ map) and the normal SRTM DEM for the rest of the region.
I was able to create my own .map file with osmosis but I’m missing the contour lines. Many thanks!!
2 users thanked author for this post.
Mai 1, 2015 um 07:56 Uhr #4623ChristianKAdministratorHi Gina,
Contour lines are built with phyghtmap, a phyton programm. using viewfinder data.
http://katze.tfiu.de/projects/phyghtmap/You just have to merge the resulting osm-file with the OSM-Data with osmosis and then feed the mapwriter – thats all.
Best regards,
Christian1 Teilnehmer(n) gefällt dieser Beitrag
Mai 1, 2015 um 10:36 Uhr #4624GinaTeilnehmerMany thanks. I’ll give it a try! Thank you!
Juni 3, 2015 um 16:06 Uhr #4965row015TeilnehmerIs there a guide / tutorial on how can you do that?
I’m a newbie and I’m really having a lot of problem understanding how can I merge phyghtmap with osm data.Juni 4, 2015 um 12:47 Uhr #4972ChristianKAdministratorHi row,
No there is no easy to handle self brewery kit for this – unfortunately.
The tools for rendering use phyton, perl, java and there are a lot of different versions for different Operating Systems 32/64bit aso…The steps are:
– cut out the map coverage with osmisis (eg.) = you need a .poly file for the boundarys, this could be converted out of a gpx file.
– apply tagtransform rules
– create contourlines (phyghtmap)
– merge OSM+contourlines (osmosis)
– render the mapDocs:
Osmosis: http://wiki.openstreetmap.org/wiki/Osmosis
Phyghtmap: http://katze.tfiu.de/projects/phyghtmap/
Mapsforge writer: https://github.com/mapsforge/mapsforge/blob/master/docs/Getting-Started-Map-Writer.mdThe easiest way ist to start with the Canary Islands, its small and the rendering time is below 15minutes so a fail does’nt hurt.
http://download.geofabrik.de/africa/canary-islands-latest.osm.pbf
http://download.geofabrik.de/africa/canary-islands.polyBest regards,
ChristianJuni 5, 2015 um 16:12 Uhr #4992row015TeilnehmerWhen I try to merge the files generated with phyghtmap with canary osm file, it catches an error…
osmosis –rx lon-14.00_-13.00lat27.00_28.00_srtm3v3.0.osm –rx lon-14.00_-13.00lat28.00_29.00_srtm3v3.0.osm –rx lon-14.00_-13.00lat29.00_29.94_srtm3v3.0.osm –rx lon-15.00_-14.00lat26.57_27.00_srtm3v3.0.osm –rx lon-15.00_-14.00lat28.00_29.00_srtm3v3.0.osm –rx lon-16.00_-15.00lat27.00_28.00_srtm3v3.0.osm –rx lon-16.00_-15.00lat28.00_29.00_srtm3v3.0.osm –rx lon-17.00_-16.00lat27.00_28.00_srtm3v3.0.osm –rx lon-17.00_-16.00lat28.00_29.00_srtm3v3.0.osm –rx lon-18.00_-17.00lat27.00_28.00_srtm3v3.0.osm –rx lon-18.00_-17.00lat28.00_29.00_srtm3v3.0.osm –rx lon-18.64_-18.00lat27.00_28.00_srtm3v3.0.osm –rx lon-18.64_-18.00lat28.00_29.00_srtm3v3.0.osm –rx canary-islands-latest.osm –wx mytest.osm
giu 05, 2015 4:07:11 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Osmosis Version 0.43.1
giu 05, 2015 4:07:13 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Preparing pipeline.
giu 05, 2015 4:07:13 PM org.openstreetmap.osmosis.core.Osmosis main
GRAVE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: The following named pipes () and 13 default pipes have not been terminated with appropriate output sinks.
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:94)
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:116)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)Juni 5, 2015 um 18:16 Uhr #4993EmuxTeilnehmerJuni 8, 2015 um 13:51 Uhr #5025row015TeilnehmerSame error…. 🙁
Isn’t there a way to tell osmosis to merge all osm files a in a directory?Juni 8, 2015 um 14:20 Uhr #5026EmuxTeilnehmerYou need to use the proper Osmosis task for the merging:
http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.44#–merge_.28–m.29Juni 8, 2015 um 16:38 Uhr #5027ChristianKAdministratorAnd: make ONE file for the contours, use Phyghtmap with
–max-nodes-per-tile=0
and specify an output filename_prefix:
-o=rawcontours
then you receive a file rawcontours_blablabla.osm now you can rename it per batch by
rename rawcontours*.osm mycountours.osm
means you have a fixed name for the contours and ONE file to merge.ManPage for Phyghtmap:
http://katze.tfiu.de/projects/phyghtmap/phyghtmap.1.htmlBest regards, Christian
Juli 9, 2015 um 23:48 Uhr #5266masterX244TeilnehmerGot a question, too: are you using the default mapsforge-writer tag mappings or a customized one?
Edit: found it, was hidden pretty deep at the site
Juli 11, 2015 um 16:50 Uhr #5269masterX244TeilnehmerGot a new issue though now, contour lines don’t show their text and the hiking paths don’t get the highlighting ariund them. Screenshot of the differences attached
Februar 25, 2019 um 12:06 Uhr #27225AnonymInaktivContour lines are built with phyghtmap, a phyton programm. using viewfinder data.
For the Alps (e.g. Alps_West.map) do you use the 1” resolution dem files available in the ALPS section of ViewFinderPanoramas?
Februar 25, 2019 um 14:02 Uhr #27227ChristianKAdministratorViewFinderPanoramas
Yes and no..
..here in the Forum there is a user: @Sonny – he collected all free LaserElevationData where available and mixed it with the VeiwFinderPanorama hgts:
http://data.opendataportal.at/dataset/dtm-franceThis is a major improvement over pure Viewfinder HGTs.
You have to download the viewfinderdata and copy @Sonnys HGTs over the VIEW HGTs.
In areas where no VIEW 1″ is available but HGTs from @Sonny available you have to cheat the index_file of phyghtmap.1 Teilnehmer(n) gefällt dieser Beitrag
Februar 25, 2019 um 14:07 Uhr #27229ChristianKAdministratordon’t show their text and the hiking paths don’t get the highlighting ariund them
If you use OAM Tagmapping, OAM Tagtransform and the Elevate from @Tobias it should work.
There are no hidden obstacles in dokumentation away from resolving relations.For the labels of the contourlines you have to zoom in.
1 Teilnehmer(n) gefällt dieser Beitrag
- AutorBeiträge
- Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.