Verschlagwortet: , , ,

Betrachte 15 Beiträge - 1 bis 15 (von insgesamt 28)
  • Autor
    Beiträge
  • #4617
    Gina
    Teilnehmer

    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.
    #4623
    Avatar-FotoChristianK
    Administrator

    Hi 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,
    Christian

    1 Teilnehmer(n) gefällt dieser Beitrag
    #4624
    Gina
    Teilnehmer

    Many thanks. I’ll give it a try! Thank you!

    #4965
    row015
    Teilnehmer

    Is 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.

    #4972
    Avatar-FotoChristianK
    Administrator

    Hi 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 map

    Docs:
    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.md

    The 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.poly

    Best regards,
    Christian

    #4992
    row015
    Teilnehmer

    When 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)

    #4993
    Avatar-FotoEmux
    Teilnehmer

    The proper syntax is:
    osmosis –rx file=read.osm –wx file=write.osm

    Emux
    CruiserAtlas

    #5025
    row015
    Teilnehmer

    Same error…. 🙁
    Isn’t there a way to tell osmosis to merge all osm files a in a directory?

    #5026
    Avatar-FotoEmux
    Teilnehmer

    You need to use the proper Osmosis task for the merging:
    http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.44#–merge_.28–m.29

    Emux
    CruiserAtlas

    #5027
    Avatar-FotoChristianK
    Administrator

    And: 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.html

    Best regards, Christian

    #5266
    masterX244
    Teilnehmer

    Got 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

    #5269
    masterX244
    Teilnehmer

    Got 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

    #27225
    Anonym
    Inaktiv

    Contour 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?

    #27227
    Avatar-FotoChristianK
    Administrator

    ViewFinderPanoramas

    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-france

    This 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
    #27229
    Avatar-FotoChristianK
    Administrator

    don’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
Betrachte 15 Beiträge - 1 bis 15 (von insgesamt 28)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.