Página 1 de 5 123 ... ÚltimoÚltimo
Resultados 1 al 10 de 43

Tema: Infos About creating Vector maps

  1. #1
    Fecha de ingreso
    16 Dec, 08
    Mensajes
    62

    Predeterminado Infos About creating Vector maps

    Hi Ray

    What is the procedure for you to produce these maps?
    Última edición por GPSTech; 27/10/2011 a las 07:10
    gpstechnologies.com.au
    gpsaustralia.net

  2. #2
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    Hi GPSTech,

    There is more than one way.

    I can describe in a short abstract the way, which I chose:

    1) Get Data from OSM (openstreetmap)
    Download .osm file from
    http://downloads.cloudmade.com/ (thanks to cjrams for this hint)
    or from
    http://download.geofabrik.de/osm/
    the third way is to use the script osmget.pl just to grab a region directly from OSM.
    2) Convert .osm data (it's using XML) to map polish format (.mp)
    Therefore I use osm2mp.pl from a russian developer.
    This converter is optimized for cGPSMapper for creating maps for Garmin.
    3) so it's necessary to do some modifications on the .mp-file.
    I wrote PTextReorg.pl to do this. I solve to problems which avoid an import to Compe Land. And you can reorg the .map-file using the configuration file maping.def
    So you can split thematic .mp files or merge them. Also you can map polish object types to other object types. And also important, you can specify the draw priority of the later generated MPVF file.
    For the beginning just use my configuration.
    4) Import the modified .mp file to Compe Land
    Here you have to set zoom behavior and some other things.
    You can also set colors, line type and width ,....
    Unfortunately icons of the POIs get lost after saving to MPVF, so don't spend any time to set the icons. And also you can't use this POIs for seach on the Aventura.
    Somthing is going wrong, I don't see that I miss something, but to never knows.
    5) After modifying the map in Land you have to delete all zoom levels bigger than 0! (Thanks to pepin and macnetz for this hint
    Than save is as MPV (only this format can be modified).
    Than save it as MPVF (hint: use a different name)
    From the MPVF export the CLAY.
    6) If you don't adjust all colors and line types in Land you can do it by modifying the .clay file.
    Changing the zoom behavior in the clay seemed not to work.
    in the .clay to can set the Icons of the POI, which get lost on saving to MPVF.
    Therefore I wrote two scripts to simplify the process.
    Get the script clayExtractor.pl and clayModifierer.pl to do use.
    clayExtractor write the .clay file to a more human readable format.
    It also replace the icon names of the POI with icon names which works.
    Also a default size of the icon is set (check out the configuration clayExtractor.cfg for that)
    Than you can modify the generated file with any text editor.
    E.g. you can set colors, line types and width and also the identifier names in additional languages.
    Afterward you use this file to pimp the original .clay file.

    At the moment a need one evening to create a VMPF map based on OSM data.

    But take take for regions with high data density like big cities the Anventura get in trouble. The VMPF is not so powerful like the VMAP format. I think Compe is doing some optimisation on creating VMAP maps.

    @tv-arnd is starting to write a how-to in our Wiki, but it's still under construction, so be patient.
    In German language I described it already a little bit more detailed, see http://www.naviboard.de/vb/showthread.php?t=41386
    You shall put a view on it, to grab the examples.

    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  3. #3
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    cjrams, thanks a lot for the map.

    You found the map, which cjrams created at:
    http://www.megaupload.com/?d=2VOPPKLS

    cjrams chose a different way to create the map.
    He use ESRI shape files. This is a different format which Land understands.
    I use the MP format. I can't say which format is the better choice.

    I will put the focus on different data (more on mtb specific data), so the map which I working at the moment will look different.
    Hopefully I will be finished this week.
    Last week I was busy to put my tracks of my last three MTb-holidays on La Palma to OSM. For La Gomera I done it before.

    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  4. #4
    Fecha de ingreso
    28 Jan, 05
    Ubicación
    Asturias
    Mensajes
    1,455

    Predeterminado

    Ray, the reason you can't see waypoints in your mpvf files is that mpvfs reads icons from the file

    poi_icons.cbmp

    It is a binary file that stores compressed bmps, here the name, (or maybe Compe bmp?) along with an alpha chanel.

    Before than Aventura, Compe vector maps used a file of zipped bmps that you could customize easlily, as

    garmin.zip

    In fact MPVs still uses the good old precedure (for how long?).

    Currently making a mpvf is a torture, as your post shows, as the results are necesarily poor.

    But still there is a chance for you to use custom icons in your mpvf files. You must hack the mpvf file with a binary editor and change

    poi_icons.cbmp ---> yourCustomIcons.zip

    At least some time ago it woked for me, as the Aventura could read both formats. I gave up making mpvfs, so I don't know the current situation.

  5. #5
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    pepin, I don't like to change binary files.
    If you have a description, I would be interested what changes you done on this files.

    For the Icons I found a different solution.
    I exported the clay of one of the Teleatlas VMAP.
    And see that their are names for the icons. I just used them and it works.

    Example:


    The CLAY of my VMPF has following line (scroll to the right!):
    Código:
    Layer34=12322,Gasolineras,4294967295,4294967295,1,4.0000,0.0000,-1,1,0.0000,0.0000,Gas Station,0,0,0.0000,1290,1,0,1,FFFFFFFFFFFFFFFF,0,0.0000,4294967295,4294967295
    Gas Station is the Icon name, but Twonav or Land don't recognized it.
    I seem to be the Garmin Icon name.

    I modfiied this line (scroll to the right!):

    Código:
    Layer34=12322,Gasolineras,4294967295,4294967295,1,4.0000,0.0000,-1,1,0.0000,0.0000,7311,0,0,0.0000,1290,1,0,1,FFFFFFFFFFFFFFFF,0,0.0000,4294967295,4294967295
    7311.bmp is the icon of the gas station, which works fine.
    You find it the file Teleatlas.zip

    I'm to lazy to do this manually, so I write two Perl scripts to do this.
    clayExtractor.pl and clayModifierer.pl
    The first one extract the infos from the CLAY and to some automatic substitutions (like icon names).
    Código:
    clayExtractor.pl  DACH08Q4.clay
    -> DACH08Q4.clay.cfg
    clayExtractor.pl use the configuration file clayExtractor.cfg (there you find the substitions, which it do).

    In the second step you can modify the generated file with a text editor.

    And last you assign this modification on the CLAY.
    Código:
    clayModifierer.pl  DACH08Q4.clay
    -> DACH08Q4.clay.modified
    The script recognized automatic the file DACH08Q4.clay.cfg, but you can use a different file if you want.


    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  6. #6
    Fecha de ingreso
    28 Jan, 05
    Ubicación
    Asturias
    Mensajes
    1,455

    Predeterminado

    Ray,

    I was supposing you were willing to use your own custom icons (I have a pull of icons I use to build my img files).

    OK, if the icons in poi_icons.cbmp are enough for you, you don't have to hack the mpvf.

  7. #7
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    I do

    poi_icons.cbmp ---> yourCustomIcons.zip

    but it's not a valid zip-file.

    To put more icons inside would be nice, because for some things their is no icons.

    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  8. #8
    Fecha de ingreso
    28 Jan, 05
    Ubicación
    Asturias
    Mensajes
    1,455

    Predeterminado

    I see my explanation was confussing.

    First, you have to prepare a selection of the icons you want, they must be BMPs. Then you put those icons in a zip file.

    Look for example at the file:

    CompeLandHome\symbols\garmin.zip

    and put in it all the symbols you want.

    The go to:

    CompeLand > Options > Waypoints > symbols combo box > select garmin.

    Then you'll be able to see all your custom symbols in:

    - waypoints
    - MPVs

    But not in:

    - MPVFs
    -BWPT

    And why not?. Because these last formats reads the icons from a differnt file:

    CompeLandHome\symbols\poi_icons.cmp

    whatever your choice in Land > Options.

    Confusing doen't it?. I agree

    Then when you export

    MPV->MPVF

    all icons are gone, simply because each format READS A DIFFERENT ICON FILE.

    I tried Compe would fit this many months ago, but had no success.

    The solution I was using -not sure it currently works- was to use the same icon file for both formats.

    But to achive this goal you HAVE TO HACK the MPVF file, as the mpvf exporter don't allows you to select the icons file, even it should know the source file is using a differnt set than the target file.

  9. #9
    Fecha de ingreso
    10 Sep, 08
    Ubicación
    Darmstadt (Germany)
    Mensajes
    344

    Predeterminado

    pepin, I think I understand now what you mean.
    Hacking the VMPF file is not a option for me, because it's beyond my skills.

    The next version of Land seem to be released soon.
    Let us see what improvement will be in Land 7.0.

    Ray
    www.melibokus-biker.de
    Anima+ 3.3.4, , Samsung S5 with TwoNav Android 3.3.4
    (old devices Aventura W.E. 3.1/OS 1.3.60R, Sportiva+ 3.0/OS 2.2.1, Garmin 60CSx, Magellan Meridian Platinum)
    CompeGPS Land 8.1.1 & 7.7.* (Win & Mac) running on Mac OS X using a virtual machine for Win XP
    dt. TwoNav-SubForum im Naviboard
    Perl-Script gpsconv.pl a Converter for Tracks and Waypoints (e.g. GPX, KML and CompeGPS, ...)

  10. #10
    Fecha de ingreso
    28 Jan, 05
    Ubicación
    Asturias
    Mensajes
    1,455

    Predeterminado

    OK, but it's not that difficult, some like editing a text file.

Página 1 de 5 123 ... ÚltimoÚltimo

Etiquetas para este tema

Permisos de publicación

  • No puedes crear nuevos temas
  • No puedes responder temas
  • No puedes subir archivos adjuntos
  • No puedes editar tus mensajes
  •  


About us

    CompeGPS Team SL All rights reserved © 2012

Follow us on

Twitter Facebook youtube Google Plus Flickr