Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-23 Thread Charlie Ferrero
Carlos Dávila wrote:
 Try again with the screeshots:
 Carlos Dávila escribió:
 Charlie Ferrero escribió:
   
 Clinton Gladstone wrote:
   
 
 On Dec 22, 2009, at 12:41, Charlie Ferrero wrote:

 
   
 So I've solved the problem of getting the familysets properly visible in 
 the secondary map menu, but now individual tiles all share the same 
 family name, no matter which family they were originally in.
   
 
 I'm pretty sure that to get correct names for the individual tiles, you 
 have to provide names for each of them. You can do this by using the -c 
 option and providing a .args file which lists the names of each tile. (Do 
 this instead of using *.img on the command line.)

 I do pretty much the same thing as you do, except I use MapSource or the 
 Map Install on the Mac to do the final combine and transfer. (Which is 
 also needed if the --index option is used.)

 Cheers.
 
   
 Bear in mind that before this merge step, I've already built the various 
 tiles .img files and set the description, area-name, family-name 
 correctly (and verified this by making a gmapsupp.img for each layer 
 individually).  So it seems unnecessary to have to do it again at the 
 point of merging the layers into one final file.

 But anyhow, if I were to follow your suggestion I would need to supply 
 multiple .args files - one for each layer.  But if I try the following 
 it doesn't work (I end up with a single layer, the last one on the 
 command line):

 java -jar mkgmap.jar --gmapsupp
   -c contours.args contours.TYP
   -c base.args base.TYP
   -c routing.args

 I need multiple .args files to control things like:
 draw-priority
 transparent
 family-name etc

 for each layer.
   
 
 AFAIK you can put all this settings in the same args, in the section of
 each layer. This is what I have in an args file I'm testing:
 latin1
 code-page=1252
 gmapsupp
 remove-short-arcs
 country-name=ESPAÑA
 country-abbr=ESP

 family-id=30
 product-id=314
 family-name=OSM España
 series-name=OSM-Iberia-n
 index
 road-name-pois
 ignore-maxspeeds
 add-pois-to-areas
 adjust-turn-headings
 report-similar-arcs
 link-pois-to-ways
 location-autofill=1
 drive-on-right
 check-roundabouts
 check-roundabout-flares
 draw-priority=25
 style=mio
 route

 mapname: 63240001
 description: ES-Madrid
 input-file: 63240001.osm.gz

 mapname: 63240002
 description: ES-Vigo
 input-file: 63240002.osm.gz

 mapname: 63240003
 description: ES-Valladolid
 input-file: 63240003.osm.gz

 mapname: 63240004
 description: ES-Valencia
 input-file: 63240004.osm.gz

 mapname: 63240005
 description: ES-Barcelona
 input-file: 63240005.osm.gz

 family-id=31
 product-id=320
 family-name=OSM Costa Iberia
 series-name=OSM-Iberia-costa
 draw-priority=28
 generate-sea
 transparent
 style=sea

 mapname: 63240100
 description: Costa Iberia
 input-file: ../mapas/sea/costa_peninsula.osm

Carlos,

The difference is that you are compiling the files from *.osm.  I 
already have the files compiled to *.img.  I don't want to have to start 
from *.osm because my contour layer never changes, so there's no point 
having to recompile it from scratch every time I update my OSM map data 
(i.e. weekly).

I've not got any further here, so I'm settling with my Option 2 listed a 
few emails upthread, as this gives me 95% of what I wanted.

Thanks all for your help,


--
Charlie
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-23 Thread Carlos Dávila




Clinton Gladstone escribi:

  On Dec 22, 2009, at 20:27, Carlos Dvila wrote:

  
  
Maybe you remember a discussion on this issue back in October [1]. Then I tried transparent/draw-priority as you suggest and the land layer covered the sea, but I'll try again and report back.

  
  
Sorry, I had forgotten about this. From your description it seems like either the land map is not properly set to transparent, or some non-transparent polygons in the land map are appearing on top of the sea layer, or possibly you have another map on your Nuvi which is drawn on top of the sea map.

The problem seems to be in the nuvi, as the map is correctly drawn in
MapSource and Legend HCx, so it can be related with the base map or the
included map (HCx has none of them). Most probably it's the base map,
as I have the same CityNavigator installed in MapSource and in the nuvi
and MS works fine. I have generated a new map with sea priority=10, no
transparent and land priority=25, transparent and have exactly the same
problem in the nuvi (no difference copying gmapsupp generated with
mkgmap to the SD or sending the map with mapsource). One side effect of
this approach is that bridges over the sea disappear under the water,
as the sea polygon is not transparent.


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-23 Thread Carlos Dávila




Charlie Ferrero escribi:

  Carlos Dvila wrote:
  
  
Try again with the screeshots:
Carlos Dvila escribi:


  Charlie Ferrero escribi:
  
  
  
Clinton Gladstone wrote:
  



  On Dec 22, 2009, at 12:41, Charlie Ferrero wrote:


  
  
  
So I've solved the problem of getting the familysets properly visible in 
the secondary map menu, but now individual tiles all share the same 
family name, no matter which family they were originally in.
  


  
  I'm pretty sure that to get correct names for the individual tiles, you have to provide names for each of them. You can do this by using the -c option and providing a .args file which lists the names of each tile. (Do this instead of using *.img on the command line.)

I do pretty much the same thing as you do, except I use MapSource or the Map Install on the Mac to do the final combine and transfer. (Which is also needed if the --index option is used.)

Cheers.

  
  

Bear in mind that before this merge step, I've already built the various 
tiles .img files and set the description, area-name, family-name 
correctly (and verified this by making a gmapsupp.img for each layer 
individually).  So it seems unnecessary to have to do it again at the 
point of merging the layers into one final file.

But anyhow, if I were to follow your suggestion I would need to supply 
multiple .args files - one for each layer.  But if I try the following 
it doesn't work (I end up with a single layer, the last one on the 
command line):

java -jar mkgmap.jar --gmapsupp
  -c contours.args contours.TYP
  -c base.args base.TYP
  -c routing.args

I need multiple .args files to control things like:
draw-priority
transparent
family-name etc

for each layer.
  


  
  AFAIK you can put all this settings in the same args, in the section of
each layer. This is what I have in an args file I'm testing:
latin1
code-page=1252
gmapsupp
remove-short-arcs
country-name=ESPAA
country-abbr=ESP

family-id=30
product-id=314
family-name=OSM Espaa
series-name=OSM-Iberia-n
index
road-name-pois
ignore-maxspeeds
add-pois-to-areas
adjust-turn-headings
report-similar-arcs
link-pois-to-ways
location-autofill=1
drive-on-right
check-roundabouts
check-roundabout-flares
draw-priority=25
style=mio
route

mapname: 63240001
description: ES-Madrid
input-file: 63240001.osm.gz

mapname: 63240002
description: ES-Vigo
input-file: 63240002.osm.gz

mapname: 63240003
description: ES-Valladolid
input-file: 63240003.osm.gz

mapname: 63240004
description: ES-Valencia
input-file: 63240004.osm.gz

mapname: 63240005
description: ES-Barcelona
input-file: 63240005.osm.gz

family-id=31
product-id=320
family-name=OSM Costa Iberia
series-name=OSM-Iberia-costa
draw-priority=28
generate-sea
transparent
style=sea

mapname: 63240100
description: Costa Iberia
input-file: ../mapas/sea/costa_peninsula.osm
  

  
  
Carlos,

The difference is that you are compiling the files from *.osm.  I 
already have the files compiled to *.img.  I don't want to have to start 
from *.osm because my contour layer never changes, so there's no point 
having to recompile it from scratch every time I update my OSM map data 
(i.e. weekly).
  

My final goal is also to use always the same sea map (img) and only
compile routable map


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Charlie Ferrero


Ralf Kleineisel wrote:
 On 12/21/2009 11:25 AM, char...@cferrero.net wrote:
 
 Thanks for the info.  I currently generate each layer of my 3-layer  
 map using the --gmapsupp switch and then just combine the three  
 gmapsupp.img files.  Given your notes, it seems that this may be  
 wrong.  Instead I should only create the gmapsupp.img at the last  
 step.  Am I wrong to create intermediate gmapsupp.img files and then  
 combine them?
 
 It's not wrong, it will work. But it is not necessary. Since the merge
 of the mapset branch you can do it in one go, even combine pre-made .img
 files (e.g. rarely changing contour layers) with newly created .img
 files from .osm files.
 ___
Still not having much joy here.  I've reached the point where I get the 
correct family names properly from the map setup sub-menu, but now 
individual tiles all have the same *area* name, irrespective of what was 
actually set.

Option 1.  (Worst option/broken)
Combine prebuilt gmapsupp.img files into a new, final gmapsupp.img file.

java -Xmx1500m -ea -jar mkgmap.jar --product-id=1 
--mapset-name=UK_merged --gmapsupp
--family-name=cont_family --family-id=1402
./contours/gmapsupp.img CF1402.TYP
--family-name=base_family --family-id=1400
./base/gmapsupp.img CF1400.TYP
--family-name=rout_family  --family-id=1401
./routing/gmapsupp.img

Final file size: 283 MB
No OSM copyright message when booting GPS
TYP files are not applied to the layers
Under Menu-Setup map in GPS, all tiles are listed as
, , Dec 2009
*except* two tiles which are listed as
[description], Area 63240xxx, Dec 2009

Under the secondary menu (Menu-Setup Map-Menu) I see
Hide rout_family
Hide
Hide base_family
Hide
Hide cont_family
Hide


Option 2. (Steve's method)
Combine pre-compiled tiles (nb NOT gmapsupp.img files) into a single 
gmapsupp.img.

java -Xmx1500m -ea -jar mkgmap.jar --product-id=1 
--mapset-name=UK_merged --gmapsupp
--family-name=cont_family --series-name=cont_series
--area-name=cont_area --family-id=1402
./contours/%contourLayer%*.img CF1402.TYP

--family-name=base_family --series-name=base_series
--area-name=base_area --family-id=1400 ./%OSMLayer%*.img  
 CF1400.TYP

--family-name=rout_family --series-name=rout_series
--area-name=rout_area  --family-id=1401 ./%routingLayer%*.img

Final file size: 284 MB
OSM copyright visible when booting
TYP files are applied to the layers
Under Menu-Setup map in GPS, all tiles are listed as
[description], rout_area, Dec 2009  **Aaargh!!**

Under the secondary menu (Menu-Setup Map-Menu) I see
Hide rout_family
Hide base_family
Hide cont_family **yay - this is what I wanted**

So I've solved the problem of getting the familysets properly visible in 
the secondary map menu, but now individual tiles all share the same 
family name, no matter which family they were originally in.

Yours strugglingly,
-- 

Charlie
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Clinton Gladstone
On Dec 22, 2009, at 12:41, Charlie Ferrero wrote:

 So I've solved the problem of getting the familysets properly visible in 
 the secondary map menu, but now individual tiles all share the same 
 family name, no matter which family they were originally in.

I'm pretty sure that to get correct names for the individual tiles, you have to 
provide names for each of them. You can do this by using the -c option and 
providing a .args file which lists the names of each tile. (Do this instead of 
using *.img on the command line.)

I do pretty much the same thing as you do, except I use MapSource or the Map 
Install on the Mac to do the final combine and transfer. (Which is also needed 
if the --index option is used.)

Cheers.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Steve Ratcliffe
  Option 1.  (Worst option/broken)
  Combine prebuilt gmapsupp.img files into a new, final gmapsupp.img file.

Although this could be made to work properly I'm sure that it
doesn't at present - not for what you are trying to do anyway.

I had been ignoring the MPS file and thought it wasn't much use
(since gmapsupp.img will work without one) but for getting family
name and id correct it is essential.  Now that I realise I can
make it work.


  Option 2. (Steve's method)
[...]
  [description], rout_area, Dec 2009  **Aaargh!!**

As Clinton says, you probably need to set a discription for
each tile.

..Steve

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Charlie Ferrero


Clinton Gladstone wrote:
 On Dec 22, 2009, at 12:41, Charlie Ferrero wrote:
 
 So I've solved the problem of getting the familysets properly visible in 
 the secondary map menu, but now individual tiles all share the same 
 family name, no matter which family they were originally in.
 
 I'm pretty sure that to get correct names for the individual tiles, you have 
 to provide names for each of them. You can do this by using the -c option and 
 providing a .args file which lists the names of each tile. (Do this instead 
 of using *.img on the command line.)
 
 I do pretty much the same thing as you do, except I use MapSource or the Map 
 Install on the Mac to do the final combine and transfer. (Which is also 
 needed if the --index option is used.)
 
 Cheers.
Bear in mind that before this merge step, I've already built the various 
tiles .img files and set the description, area-name, family-name 
correctly (and verified this by making a gmapsupp.img for each layer 
individually).  So it seems unnecessary to have to do it again at the 
point of merging the layers into one final file.

But anyhow, if I were to follow your suggestion I would need to supply 
multiple .args files - one for each layer.  But if I try the following 
it doesn't work (I end up with a single layer, the last one on the 
command line):

java -jar mkgmap.jar --gmapsupp
  -c contours.args contours.TYP
  -c base.args base.TYP
  -c routing.args

I need multiple .args files to control things like:
draw-priority
transparent
family-name etc

for each layer.

What am I missing?!


--
Charlie
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Ralf Kleineisel
On 12/22/2009 03:38 PM, Charlie Ferrero wrote:

 Bear in mind that before this merge step, I've already built the various 
 tiles .img files and set the description, area-name, family-name 
 correctly (and verified this by making a gmapsupp.img for each layer 
 individually).  So it seems unnecessary to have to do it again at the 
 point of merging the layers into one final file.

It isn't. E.g. the FID is not saved in the individual .img files, only
in the gmapsupp.img and .tdb file.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Felix Hartmann


On 22.12.2009 17:25, Ralf Kleineisel wrote:
 On 12/22/2009 03:38 PM, Charlie Ferrero wrote:


 Bear in mind that before this merge step, I've already built the various
 tiles .img files and set the description, area-name, family-name
 correctly (and verified this by making a gmapsupp.img for each layer
 individually).  So it seems unnecessary to have to do it again at the
 point of merging the layers into one final file.
  
 It isn't. E.g. the FID is not saved in the individual .img files, only
 in the gmapsupp.img and .tdb file.
 ___
 mkgmap-dev mailing list
 mkgmap-dev@lists.mkgmap.org.uk
 http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

The most important change would be something like at least 2 points for 
every 500m. Otherwise break the line and don't draw the straight section.
This would get rid of the artifacts seen in places with data holes.

Would be great ending with contourlinemaps without all those straight 
lines crossing. Currently one has to clean up in mapedit afterwards and 
recompile from mp (and the more wrong lines you want to get rid of, the 
more good information is also missing if you don't divide the lines 
but just mass select and delete).
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Carlos Dávila
Charlie Ferrero escribió:
 Clinton Gladstone wrote:
   
 On Dec 22, 2009, at 12:41, Charlie Ferrero wrote:

 
 So I've solved the problem of getting the familysets properly visible in 
 the secondary map menu, but now individual tiles all share the same 
 family name, no matter which family they were originally in.
   
 I'm pretty sure that to get correct names for the individual tiles, you have 
 to provide names for each of them. You can do this by using the -c option 
 and providing a .args file which lists the names of each tile. (Do this 
 instead of using *.img on the command line.)

 I do pretty much the same thing as you do, except I use MapSource or the Map 
 Install on the Mac to do the final combine and transfer. (Which is also 
 needed if the --index option is used.)

 Cheers.
 
 Bear in mind that before this merge step, I've already built the various 
 tiles .img files and set the description, area-name, family-name 
 correctly (and verified this by making a gmapsupp.img for each layer 
 individually).  So it seems unnecessary to have to do it again at the 
 point of merging the layers into one final file.

 But anyhow, if I were to follow your suggestion I would need to supply 
 multiple .args files - one for each layer.  But if I try the following 
 it doesn't work (I end up with a single layer, the last one on the 
 command line):

 java -jar mkgmap.jar --gmapsupp
   -c contours.args contours.TYP
   -c base.args base.TYP
   -c routing.args

 I need multiple .args files to control things like:
 draw-priority
 transparent
 family-name etc

 for each layer.
   
AFAIK you can put all this settings in the same args, in the section of
each layer. This is what I have in an args file I'm testing:
latin1
code-page=1252
gmapsupp
remove-short-arcs
country-name=ESPAÑA
country-abbr=ESP

family-id=30
product-id=314
family-name=OSM España
series-name=OSM-Iberia-n
index
road-name-pois
ignore-maxspeeds
add-pois-to-areas
adjust-turn-headings
report-similar-arcs
link-pois-to-ways
location-autofill=1
drive-on-right
check-roundabouts
check-roundabout-flares
draw-priority=25
style=mio
route

mapname: 63240001
description: ES-Madrid
input-file: 63240001.osm.gz

mapname: 63240002
description: ES-Vigo
input-file: 63240002.osm.gz

mapname: 63240003
description: ES-Valladolid
input-file: 63240003.osm.gz

mapname: 63240004
description: ES-Valencia
input-file: 63240004.osm.gz

mapname: 63240005
description: ES-Barcelona
input-file: 63240005.osm.gz

family-id=31
product-id=320
family-name=OSM Costa Iberia
series-name=OSM-Iberia-costa
draw-priority=28
generate-sea
transparent
style=sea

mapname: 63240100
description: Costa Iberia
input-file: ../mapas/sea/costa_peninsula.osm

First layer is my regular routable map made from spain.osm.bz2
previously processed with splitter and second layer uses a sea-only map.
I have also uses a precompiled sea-only map as input for the second
layer. This way I've been able to compile a map of Spain with sea
avoiding the problems of geofabrik extracts. It works fine in MapSource
and Legend HCx, but in nuvi 300 some weird lines appear and some
elements of the map are under the sea. See screenshots:
map in nuvi

Map in MapSource
 What am I missing?!


 --
 Charlie

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Clinton Gladstone
On Dec 22, 2009, at 18:13, Carlos Dávila wrote:  
 AFAIK you can put all this settings in the same args, in the section of
 each layer. This is what I have in an args file I'm testing:
 ...
 family-id=30
 product-id=314
 family-name=OSM España
 series-name=OSM-Iberia-n
 ...
 draw-priority=25
 ...
 family-id=31
 product-id=320
 family-name=OSM Costa Iberia
 series-name=OSM-Iberia-costa
 draw-priority=28
 generate-sea
 transparent
I think you may have the draw priorities and the --transparent option reversed.

When I produced a similar map, I set the draw priority of the sea layer to 10, 
but not transparent. The land layer had the default draw priority, but was 
transparent. That way the sea polygons appear underneath the land layer: I 
would assume that this explains the weirdness which you see on the Nuvi. In 
your screenshot it looked like the Nuvi was drawing the sea polygons on top of 
the land.

Cheers.___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Carlos Dávila




Clinton Gladstone escribi:

  
  On Dec 22, 2009, at 18:13, Carlos Dvila wrote: 
  


  AFAIK you can put all this settings in the same args, in the section of
each layer. This is what I have in an args file I'm testing:
...
family-id=30
product-id=314
family-name=OSM Espaa
series-name=OSM-Iberia-n
...
draw-priority=25
...


  
  


  family-id=31
product-id=320
family-name=OSM Costa Iberia
series-name=OSM-Iberia-costa
draw-priority=28
generate-sea
transparent
  


  
  
I think you may have the draw priorities and the --transparent option
reversed.
  
  
  When I produced a similar map, I set the draw priority of the
sea layer to 10, but not transparent. The land layer had the default
draw priority, but was transparent. That way the sea polygons appear
underneath the land layer: I would assume that this explains the
weirdness which you see on the Nuvi. In your screenshot it looked like
the Nuvi was drawing the sea polygons on top of the land.

Maybe you remember a discussion on this issue back in October [1]. Then
I tried transparent/draw-priority as you suggest and the land layer
covered the sea, but I'll try again and report back.
[1] http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2009q4/004638.html
Regards


___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-22 Thread Clinton Gladstone
On Dec 22, 2009, at 20:27, Carlos Dávila wrote:

 Maybe you remember a discussion on this issue back in October [1]. Then I 
 tried transparent/draw-priority as you suggest and the land layer covered the 
 sea, but I'll try again and report back.

Sorry, I had forgotten about this. From your description it seems like either 
the land map is not properly set to transparent, or some non-transparent 
polygons in the land map are appearing on top of the sea layer, or possibly you 
have another map on your Nuvi which is drawn on top of the sea map.

Cheers.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-21 Thread charlie
Quoting Steve Ratcliffe st...@parabola.me.uk:

 On 12/14/2009 04:35 PM, Torsten Leistikow wrote:
 Moin,

 I have multiple map layers in my gmapsupp.img file, but I can not   
 set the name
 of the layers, so that they can be identified on my nuvi.

 The first layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
 --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
 --transparent --product-id=7 --family-id=46 --country-name=Deutschland
 --country-abbr=D --family-name=OSM_M_OV --tdbfile --draw-priority=18
 --max-jobs=3 ../../osm/Europa/6???.osm.gz

 The second layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
 --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
 --family-id=43 --country-name=Deutschland --country-abbr=D
 --family-name=OSM_BASE --tdbfile --draw-priority=8 --max-jobs=3
 ../../osm/Europa/3???.osm.gz

 And in a third step I combine both layers into the gmapsupp.img:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
 --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
 img/03_topo_base/OSM_BASE.TYP

 Sorry I'm a bit late on this thread...

 Most of the parameters to do with family and product id's are not
 stored in the .img file and so they need to be specified when creating
 a tdb or gmapsupp file.  When a gmapsupp is created there is an extra
 file added that contains family id, name etc information.  This MPS
 file is within the gmapsupp, so you don't see it normally.

 This file gained a lot of fixes recently and still might not be 100%
 correct.

 So you will need a command line something like this to create the
 gmapsupp:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
--gmapsupp
 --family-name=OSM_M_OV --family-id=46 
 img/06_restrictions_motorcar/*.img
 --family-name=OSM_BASE --family-id=43 img/03_topo_base/*.img
img/03_topo_base/OSM_BASE.TYP

 ..Steve
Steve,

Thanks for the info.  I currently generate each layer of my 3-layer  
map using the --gmapsupp switch and then just combine the three  
gmapsupp.img files.  Given your notes, it seems that this may be  
wrong.  Instead I should only create the gmapsupp.img at the last  
step.  Am I wrong to create intermediate gmapsupp.img files and then  
combine them?

Charlie



___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-21 Thread Ralf Kleineisel
On 12/21/2009 11:25 AM, char...@cferrero.net wrote:

 Thanks for the info.  I currently generate each layer of my 3-layer  
 map using the --gmapsupp switch and then just combine the three  
 gmapsupp.img files.  Given your notes, it seems that this may be  
 wrong.  Instead I should only create the gmapsupp.img at the last  
 step.  Am I wrong to create intermediate gmapsupp.img files and then  
 combine them?

It's not wrong, it will work. But it is not necessary. Since the merge
of the mapset branch you can do it in one go, even combine pre-made .img
files (e.g. rarely changing contour layers) with newly created .img
files from .osm files.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-20 Thread Steve Ratcliffe
On 12/14/2009 04:35 PM, Torsten Leistikow wrote:
 Moin,

 I have multiple map layers in my gmapsupp.img file, but I can not set the name
 of the layers, so that they can be identified on my nuvi.

 The first layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
 --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
 --transparent --product-id=7 --family-id=46 --country-name=Deutschland
 --country-abbr=D --family-name=OSM_M_OV --tdbfile --draw-priority=18
 --max-jobs=3 ../../osm/Europa/6???.osm.gz

 The second layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
 --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
 --family-id=43 --country-name=Deutschland --country-abbr=D
 --family-name=OSM_BASE --tdbfile --draw-priority=8 --max-jobs=3
 ../../osm/Europa/3???.osm.gz

 And in a third step I combine both layers into the gmapsupp.img:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
 --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
 img/03_topo_base/OSM_BASE.TYP

Sorry I'm a bit late on this thread...

Most of the parameters to do with family and product id's are not
stored in the .img file and so they need to be specified when creating
a tdb or gmapsupp file.  When a gmapsupp is created there is an extra
file added that contains family id, name etc information.  This MPS
file is within the gmapsupp, so you don't see it normally.

This file gained a lot of fixes recently and still might not be 100%
correct.

So you will need a command line something like this to create the
gmapsupp:

java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
   --gmapsupp
  --family-name=OSM_M_OV --family-id=46 
img/06_restrictions_motorcar/*.img
  --family-name=OSM_BASE --family-id=43 img/03_topo_base/*.img
   img/03_topo_base/OSM_BASE.TYP

..Steve
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-18 Thread Charlie Ferrero


garvan.m...@online.com.kh wrote:

 
 Your Tool Meun may be hidden in mapsource. From the menu select  
 Tools-Map, and then select all the tiles you want to transfer to your  
 device by draging a selection box over them with the mouse, or  
 clicking on each tile.
 
 It would be nice to have a table to show where all different options  
 show up in mapsource and on the gps. I have never seen the bug you are  
 describing, but I have the family-name, not the series-name displaying  
 in menu [1], and my GPS has no external memory so I can only use  
 mapsource to upload maps.
 
 Garvan
 
 
Thanks for that.  Man, that's not the most obvious thing to figure out 
on your own!  Perhaps I should have read the manual...
-- 

Charlie
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-16 Thread Ralf Kleineisel
On 12/15/2009 04:00 PM, Charlie Ferrero wrote:

 For the record,
 
 series-name: This is the name displayed in the top-left drop down list 
 in MapSource and that is visible in the GPS menu (but only the series 
 name of the top layer)
 
 family-name: This is the name that appears in MapSource's Map Product 
 Manager (CTRL+U) and is also ascribed to each tile if transferred using 
 send-map
 
 area-name: This is the name that appears against each tile in the GPS 
 unit if transferred manually by copying a gmapsupp.img to SD card

Different GPS units seem to handle this differently.

My eTrex Legend HCx shows the description field in the Setup map menu
where you can select individual map tiles. I set it like this in the
template.args file:

[...]
mapname: 1058
description: OSM_Berlin_W
input-file: 1058.osm.gz
mapname: 1059
description: OSM_Berlin_O
input-file: 1059.osm.gz
[...]

In the Setup map menu, where you can select the different maps according
to the family-ID and/or the basemap, it shows the family-name.

I haven't found the area name or the series name anywhere in this unit.

I copy the whole gmapsupp.img using an SD card reader.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-16 Thread Nakor
On Tue, Dec 15, 2009 at 7:19 PM, Clinton Gladstone 
clinton.gladst...@googlemail.com wrote:

 On Dec 15, 2009, at 16:00, Charlie Ferrero wrote:

  Perhaps the problem is that I am not uploading the maps from Mapsource
  but instead just copying the gmapsupp.img file directly to the SD card
  (because this is many times quicker than uploading via the USB cable).

 I know this won't help you with the actual problem, but do you know that
 you can also load maps from Mapsource onto your SD card? If you do this,
 it's only a few times slower than directly copying the gmapsupp.img file to
 the SD card. ;-)


See that article if you want to assemble the maps with MapSource but still
copy them to the SD card:
http://osmgps.wordpress.com/2009/10/23/fast-map-transfer-to-garmin-gps/
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-15 Thread Charlie Ferrero


char...@cferrero.net wrote:
 Quoting Torsten Leistikow de_m...@gmx.de:
 
 Moin,

 I have multiple map layers in my gmapsupp.img file, but I can not   
 set the name
 of the layers, so that they can be identified on my nuvi.

 The first layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
 --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
 --transparent --product-id=7 --family-id=46 --country-name=Deutschland
 --country-abbr=D --family-name=OSM_M_OV --tdbfile --draw-priority=18
 --max-jobs=3 ../../osm/Europa/6???.osm.gz

 The second layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
 --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
 --family-id=43 --country-name=Deutschland --country-abbr=D
 --family-name=OSM_BASE --tdbfile --draw-priority=8 --max-jobs=3
 ../../osm/Europa/3???.osm.gz

 And in a third step I combine both layers into the gmapsupp.img:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
 --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
 img/03_topo_base/OSM_BASE.TYP

 The resulting map is working ok, just when I look at the map settings in my
 nuvi, both layers are displayed in the same way

 family name
 [1] OSM street map
 family name
 [1] OSM street map

 So, what parameters do I have to set, so that I can identify the   
 layers on the
 nuvi by the mapname?

 Gruss
 Torsten
 
 
 I have noticed the same problem on my GPSMap.  The name shown is that  
 of the top layer, no matter what options have been used to compile  
 each layer.  All layers have a different family ID.  I combine files  
 using sendmap, not mkgmap, incidentally, so the problem is not  
 occurring in the combine step.
 
As a correction, the above should have read:
The *series* name shown is that of the top layer, no matter what 
options have been used to compile each layer.


The full list of options is
Restore Defaults
Restore All Map Defaults
Show All
Show None
Show Basemap
Show International Mari [sic]
Hide CF OSM map series
Hide CF OSM map series

-- 

Charlie
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-15 Thread Garvan maew
Charlie Ferrero wrote:
 char...@cferrero.net wrote:
   
 Quoting Torsten Leistikow de_m...@gmx.de:

 
 Moin,

 I have multiple map layers in my gmapsupp.img file, but I can not   
 set the name
 of the layers, so that they can be identified on my nuvi.

 The first layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
 --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
 --transparent --product-id=7 --family-id=46 --country-name=Deutschland
 --country-abbr=D --family-name=OSM_M_OV --tdbfile --draw-priority=18
 --max-jobs=3 ../../osm/Europa/6???.osm.gz

 The second layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
 --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
 --family-id=43 --country-name=Deutschland --country-abbr=D
 --family-name=OSM_BASE --tdbfile --draw-priority=8 --max-jobs=3
 ../../osm/Europa/3???.osm.gz

 And in a third step I combine both layers into the gmapsupp.img:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
 --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
 img/03_topo_base/OSM_BASE.TYP

 The resulting map is working ok, just when I look at the map settings in my
 nuvi, both layers are displayed in the same way

 family name
 [1] OSM street map
 family name
 [1] OSM street map

 So, what parameters do I have to set, so that I can identify the   
 layers on the
 nuvi by the mapname?

 Gruss
 Torsten
   
 I have noticed the same problem on my GPSMap.  The name shown is that  
 of the top layer, no matter what options have been used to compile  
 each layer.  All layers have a different family ID.  I combine files  
 using sendmap, not mkgmap, incidentally, so the problem is not  
 occurring in the combine step.

 
 As a correction, the above should have read:
 The *series* name shown is that of the top layer, no matter what 
 options have been used to compile each layer.


 The full list of options is
 Restore Defaults
 Restore All Map Defaults
 Show All
 Show None
 Show Basemap
 Show International Mari [sic]
 Hide CF OSM map series
 Hide CF OSM map series

   
I recommend you make a test map using all the naming parameters, and 
track which name goes where. You are missing --series-name and --area-name.

I upload maps with MapSource, and the menu name you wish to change is 
taken from the --family-name (as far as I can see).

Garvan



___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-15 Thread Charlie Ferrero


Garvan  maew wrote:
 Charlie Ferrero wrote:
 char...@cferrero.net wrote:
   
 Quoting Torsten Leistikow de_m...@gmx.de:

 
 Moin,

 I have multiple map layers in my gmapsupp.img file, but I can not   
 set the name
 of the layers, so that they can be identified on my nuvi.

 The first layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
 --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
 --transparent --product-id=7 --family-id=46 --country-name=Deutschland
 --country-abbr=D --family-name=OSM_M_OV --tdbfile --draw-priority=18
 --max-jobs=3 ../../osm/Europa/6???.osm.gz

 The second layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
 --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
 --family-id=43 --country-name=Deutschland --country-abbr=D
 --family-name=OSM_BASE --tdbfile --draw-priority=8 --max-jobs=3
 ../../osm/Europa/3???.osm.gz

 And in a third step I combine both layers into the gmapsupp.img:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
 --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
 img/03_topo_base/OSM_BASE.TYP

 The resulting map is working ok, just when I look at the map settings in my
 nuvi, both layers are displayed in the same way

 family name
 [1] OSM street map
 family name
 [1] OSM street map

 So, what parameters do I have to set, so that I can identify the   
 layers on the
 nuvi by the mapname?

 Gruss
 Torsten
   
 I have noticed the same problem on my GPSMap.  The name shown is that  
 of the top layer, no matter what options have been used to compile  
 each layer.  All layers have a different family ID.  I combine files  
 using sendmap, not mkgmap, incidentally, so the problem is not  
 occurring in the combine step.

 
 As a correction, the above should have read:
 The *series* name shown is that of the top layer, no matter what 
 options have been used to compile each layer.


 The full list of options is
 Restore Defaults
 Restore All Map Defaults
 Show All
 Show None
 Show Basemap
 Show International Mari [sic]
 Hide CF OSM map series
 Hide CF OSM map series

   
 I recommend you make a test map using all the naming parameters, and 
 track which name goes where. You are missing --series-name and --area-name.
 
 I upload maps with MapSource, and the menu name you wish to change is 
 taken from the --family-name (as far as I can see).

Oh, I set -series-name, -family-name and -area-name separately.  This is 
how I know that the name that is visible in the GPS menu is the series 
name (not the area-name or family-name).

Perhaps the problem is that I am not uploading the maps from Mapsource 
but instead just copying the gmapsupp.img file directly to the SD card 
(because this is many times quicker than uploading via the USB cable).

For the record,

series-name: This is the name displayed in the top-left drop down list 
in MapSource and that is visible in the GPS menu (but only the series 
name of the top layer)

family-name: This is the name that appears in MapSource's Map Product 
Manager (CTRL+U) and is also ascribed to each tile if transferred using 
send-map

area-name: This is the name that appears against each tile in the GPS 
unit if transferred manually by copying a gmapsupp.img to SD card

Charlie
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-15 Thread Clinton Gladstone
On Dec 15, 2009, at 16:00, Charlie Ferrero wrote:

 Perhaps the problem is that I am not uploading the maps from Mapsource 
 but instead just copying the gmapsupp.img file directly to the SD card 
 (because this is many times quicker than uploading via the USB cable).

I know this won't help you with the actual problem, but do you know that you 
can also load maps from Mapsource onto your SD card? If you do this, it's only 
a few times slower than directly copying the gmapsupp.img file to the SD card. 
;-)

Cheers.
___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


Re: [mkgmap-dev] naming map layers in a gmapsupp.img

2009-12-14 Thread charlie
Quoting Torsten Leistikow de_m...@gmx.de:

 Moin,

 I have multiple map layers in my gmapsupp.img file, but I can not   
 set the name
 of the layers, so that they can be identified on my nuvi.

 The first layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap.jar
 --style-file=../../styles/06_restrictions_motorcar --remove-short-arcs=5
 --transparent --product-id=7 --family-id=46 --country-name=Deutschland
 --country-abbr=D --family-name=OSM_M_OV --tdbfile --draw-priority=18
 --max-jobs=3 ../../osm/Europa/6???.osm.gz

 The second layer is created by the following call:

 java -jar  -Xmx6144M ../../mkgmap-r1170/mkgmap_style_2.jar
 --style-file=../../styles/03_topo_base --remove-short-arcs=5 --product-id=7
 --family-id=43 --country-name=Deutschland --country-abbr=D
 --family-name=OSM_BASE --tdbfile --draw-priority=8 --max-jobs=3
 ../../osm/Europa/3???.osm.gz

 And in a third step I combine both layers into the gmapsupp.img:

 java -jar mkgmap-r1429/mkgmap.jar --product-id=7 --mapset-name=OSM_M004
 --gmapsupp img/06_restrictions_motorcar/*.img img/03_topo_base/*.img
 img/03_topo_base/OSM_BASE.TYP

 The resulting map is working ok, just when I look at the map settings in my
 nuvi, both layers are displayed in the same way

 family name
 [1] OSM street map
 family name
 [1] OSM street map

 So, what parameters do I have to set, so that I can identify the   
 layers on the
 nuvi by the mapname?

 Gruss
 Torsten


I have noticed the same problem on my GPSMap.  The name shown is that  
of the top layer, no matter what options have been used to compile  
each layer.  All layers have a different family ID.  I combine files  
using sendmap, not mkgmap, incidentally, so the problem is not  
occurring in the combine step.

-- 
Charlie

___
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev