Combining several different maps into one gmapsupp

Hi I've improved the way that mkgmap combines maps into the gmapsupp.img. It should now be possible to switch map families separately and have different TYP files for each family. If you want to try it out the code is on the mapset branch, or you can download a ready compiled jar from the normal download page: http://www.mkgmap.org.uk/snapshots/ Choose the one like mkgmap-mapset-r*.jar (You can get an up to date build of any other current branch there as well. They are usually no more than half an hour out of date.) This is an example of two map families being combined into one gmapsupp.img. As the .img files do not contain the family-id's then you have to specify them. You can also now use a lowercase .typ extension. ### Start ############### # This uses the complete set of options possible, you can omit many of # them as they all have default values, but really the only critical # thing is that the family-id and product-id match the ones given in # the associated .TYP file. gmapsupp # First family 911 family-id=911 product-id=1 series-name=tst1 series family-name=tst1 family area-name=tst1 area input-file:63240001.img # .. all other files for this family input-file:M000038d.TYP # Second family 912 family-id=912 product-id=2 series-name=tst2 series family-name=tst2 family area-name=tst2 area input-file:63240002.img # .. all other files for this family input-file:M0000390.TYP area-name: An OSM area mapset-name: OSM map set ### End ################# Note that .tdb files can only contain one family id and so any tdb file created at the same time as a multi-family gmapsupp should not be used. The mdx file (part of the global index) can also contain multiple family/product ids but that has not been updated yet and I don't know how it would be useful yet either. ..Steve

On Tuesday 27 October 2009 15:56:15 Steve Ratcliffe wrote:
I've improved the way that mkgmap combines maps into the gmapsupp.img. It should now be possible to switch map families separately and have different TYP files for each family.
That looks great! Is it possible to set options like "route" or "transparent" on a per-family or per-tile basis? E.g. I'd like to have routing for the OSM layer, but not the contour line layers. The contour line layers must be transparent, but not the OSM layers.

Is it possible to set options like "route" or "transparent" on a per-family or per-tile basis? E.g. I'd like to have routing for the OSM layer, but not the contour line layers. The contour line layers must be transparent, but not the OSM layers.
All those options are properties of the individual tile, and so yes you can combine maps that were created with different options together. You can't change them during the combining step though, if that is what you were asking. ..Steve

On Wed, Oct 28, 2009 at 11:46 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Is it possible to set options like "route" or "transparent" on a per-family or per-tile basis? E.g. I'd like to have routing for the OSM layer, but not the contour line layers. The contour line layers must be transparent, but not the OSM layers.
All those options are properties of the individual tile, and so yes you can combine maps that were created with different options together.
You can't change them during the combining step though, if that is what you were asking.
But is it possible to take an existing image file and set its --transparent value or --draw-priority after it has been generated? I recently had some 3rd party contours that weren't transparent along with a map that had the wrong --draw-priority relative to the contours. I tried to fix it up with mkgmap but couldn't.

On Wednesday 28 October 2009 20:59:52 Ævar Arnfjörð Bjarmason wrote:
But is it possible to take an existing image file and set its --transparent value or --draw-priority after it has been generated? I
Wgmaptool can do just that. Use the GUI or on the command line: gmt.exe -w -t 12345678.img will make it transparent.
participants (3)
-
Ralf Kleineisel
-
Steve Ratcliffe
-
Ævar Arnfjörð Bjarmason