Sub Descriptions in gmapsupps

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Sub Descriptions in gmapsupps

nwillink
Hi

On my Oregon 600 Garmin maps show a title and a subtitle in the 'configure maps' setup

ie  

Digital Globe (title)
Demo JNX (subtitle)

So far I've not been able to create 'sub descriptions' using any of the available commands

However, interestingly , I recently discovered that using Mapinstall I can create subtitles but its messy.

I've done some testing

1) using the following command I have create a gmapsup and installed the same map on Basecamp.

--mapname=11223344
--family-id=6088
--country-name=my_country
--series-name="map1"
--family-name="map2"
--overview-mapname="map3"
--description="map4"
--remove-short-arcs
--style-file=styles
--style=june2014
--output-dir=C:\a_upl2vb6\temp
--transparent
--tdbfile
--draw-priority=10
--gmapsupp
C:\Users\me\Desktop\map.osm

2) On the Oregon the gmapsup (mkgmap.img) only produces:

'map4' as a main title

3) installing the map (mapinstall.img) using mapinstall I get

map1 ( as title)
map2 ( as subtitle)

4) looking at both imgs I noticed some interesting points:

a) MPS block 0x46 seems to contain the subtitle (in both imgs)
b) the mapinstall img contains an extra 0x50 block prior to 0x46

I can't as yet  tell whether

a) this block present in tdb files must also be included in a gmapsupp?
b) There is some additional flag that is set?
c) or both?

Have included small osm & gmapsup files in www.pinns.co.uk/osm/253/gmapsupps.zip

regards

Nick
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

popej
Hi Nick,

MPS record 0x46 ('F') contains family name and FID/PID values.
Record 0x50 ('P') contains FID/PID values and some flags. 'P' could mean
"Product".

Since Mapsource an MapInstall add both records I would do the same, but
maybe 'P' is not obligatory. Or it is some depreciated form?

The name "mp4" is placed in img header. In my opinion it should be
repeated in MPS subfile as a record 'V'. I think Mapsorce and Mapinstall
do that.

Mapsource allows to set this name, when creating gmapsupp.img. Default
value are names tiles used for gmapsupp. Mapinstall uses always default
name.

You can modify names in gmapsupp.img using some programs like GMapTool.

--
Best regards,
Andrzej
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

nwillink
Hi Andrzej

Thanks for that. I've not been able to add to or alter the MPS section as I haven't yet located the pointers to its offset and size unless they are calculated from the other subfile blocks

 In your great Gmaptool you give the length of the mps block which often seems longer than  what it appears to be - perhaps I'm wrong.

However, I think you are right there seems to be an issue here
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

Steve Ratcliffe
In reply to this post by popej

Hi

> MPS record 0x46 ('F') contains family name and FID/PID values.
> Record 0x50 ('P') contains FID/PID values and some flags. 'P' could mean
> "Product".
>

We have an F record but not a P record. I believe that P is a newer
record, as it is not present in gmapsupp produced by early versions
of mapsource - or perhaps there is something that has to be
present in the input to make it appear.

> The name "mp4" is placed in img header. In my opinion it should be
> repeated in MPS subfile as a record 'V'. I think Mapsorce and Mapinstall
> do that.

We add a V record, it defaults to the string 'OSM map set'.  This
can be changed with the mapset-name option (which has to be written
as --x-mapset-name='hello world' as it is not in the options file).

So I suppose that 'OSM map set' is not appearing and maybe it
needs the P record to be present for it to be used?

..Steve
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

nwillink
Hi Steve

I've done some more research and it seems that there is more to it than simply adding an extra 0x50 block - even copied the  mapinstall mps block into the mkgmap.img &  adjusted the length of the block & maintaining the fid accordingly
The results are still the same :

I just get map4

It looks like my original assumption might be right in that some other byte(s) might be set.

I've never seen the 'OSM map set' appearing in my Oregon althouygh I can see it in the gmapsupps
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

Steve Ratcliffe

Hi Nick

> I've done some more research and it seems that there is more to it than
> simply adding an extra 0x50 block - even copied the  mapinstall mps block
> into the mkgmap.img &  adjusted the length of the block & maintaining the
> fid accordingly
> The results are still the same :

OK interesting.  I've found that I can get the subtitle if I set
offset 0x0e in the gmapsupp to 1 (and perhaps you need all the other
things in mps too - it was the last thing I tried ;)

However setting 0xe is problematic in other ways - about displaying in
Basecamp if I remember.

..Steve
_______________________________________________
mkgmap-dev mailing list
[hidden email]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

nwillink
In reply to this post by nwillink
Hi Steve

Changing it to 1 really works ! Brilliant! Now I get a sub description for all my maps !
Also,there doesn't seem to be the need to add an extra 0x50 block in the mps,however 'correct' that might be.
I have a feeling mapinstaller uses old coding practices as it insists on typ names being restricted to a maximum of 12 characters.

As its a gmapsupp, it shouldn't affect Basecamp?

Many thanks for your input.
Any chance for it to be implemented?

best regards

Nick
Reply | Threaded
Open this post in threaded view
|

Re: Sub Descriptions in gmapsupps

nwillink
In reply to this post by nwillink
Hi Steve

Looks like setting 0e to 1 has the following effect:

The main description is taken from the name of the img
the subdescription is still defined by --description.

This probably explains why some gmapsupps have spaces in their names.

I've also noticed 20 and 21 in 0F  and various values for 0A other than 7

Nick