logo separator

[mkgmap-dev] Wrong "Object Class" displayed in Mapsource

From Michael Prinzing mipri at gmx.net on Wed Apr 17 23:54:36 BST 2013

Gerd Petermann schrieb:

Hello Gerd,

thank you for your answer.

 > The problem regarding the change between 0x4b and 0x0b was
 > in mkgmap routines that read the img file, none of them would
 > explain what you see.
 > Maybe Mapsource makes a similar error?

Meanwhile I've looked a bit deeper into it, and I found two issues:

1.) I found the wrong Object Classes in Mapsource when I was examining a 
change in the background polygon of my map. Up to some version of mkgmap 
it used to be light gray at day and almost black at night. There was no 
label at all displayed in Mapsource when the mouse was moved to this 
background.

In my actual map, the background color changed to light yellow. I don't 
know the exact version of mkgmap when this happened, but now Mapsource 
displays it as "Unbekanntes Gebiet" ("unknown area"), and with this, the 
category "Krankenhaus" ("Hospital") appeared.

My TYP file contains two background polygons, one with ID 0x4a (the 
gray/black one), and another with ID 0x4b (the yellow one). It looks 
like if earlier versions of mkgmap used 0x4a for the background, while 
newer versions use 0x4b. Is this correct?

The Online TYP Editor at ati.land.cz labels these polygons as
"0x4a [Background (selection)]" and "0x4b [Background (coverage)]". What 
is the difference between these two?

There is no label defined in my TYP file, neither for 0x4a nor for 0x4b. 
Mapsource seems to display a label only for 0x4b. Of course I could set 
my own label instead of "Unbekanntes Gebiet", but is it also possible to 
have no label at all also for 0x4b, and how can I do this?

And finally: I've installed the "All in One Garmin Map" in Mapsource. 
Here the background is labeled correctly as "Kartenmerkmal - Land" (and 
not as "Hospital"). I've looked into the corresponding TYP file and 
found the background being defined as ID 0x27. How is it possible to 
assign a own ID other than 0x4b to the background?


2.) To be sure that the wrong Object Classes in Mapsource are not caused 
by anything in my map, I've saved the OSM data for my "test area" with 
JOSM and created a new map without an own style and also without a TYP 
file. I even omitted the --add-pois-to-areas parameter. Of course the 
resulting map contains much less POIs than my map, and most of them are 
labeled correctly. But even in this map there are wrong Object Classes, 
for example for woods as shown in http://www.mipri.de/dl/wood2.png 
("Autoservices" is wrong).

If this really is a bug in Mapsource, these wrong Object Classes should 
also show up in original Garmin maps. Unfortunately, I don't own such a 
map. Has anybody seen these wrong labels in a original map from Garmin? 
Or has someone managed to build a map with mkgmap that shows correct 
labels in Mapsource? Or is in the end my individual installation od 
Mapsource broken? I am using 6.16.3, if this matters.

On the GPS indeed anything seems to be ok. For example I could not find 
anything other than hospitals it I am doing a POI search for hospitals, 
and there are no woods listed it I am searching for car services.


Thank your for your answers,

Michael




>> Date: Fri, 5 Apr 2013 23:50:42 +0200
>> From: email at mipri.de
>> To: mkgmap-dev at lists.mkgmap.org.uk
>> Subject: [mkgmap-dev] Wrong "Object Class" displayed in Mapsource
>>
>>
>> Hello,
>>
>> I am creating my own map with mkgmap and am using it on an eTrex Vista
>> HCx and with Mapsource.
>>
>> In Mapsource, when the mouse pointer is moved over an object (like a
>> road, a building or another POI) and the right mouse button is pressed,
>> a context menu appears listing anything under the pointer.
>>
>> If there is no other polygon (like forest, residential, ...) than the
>> "empty" background under the mouse pointer, Mapsource lists the
>> background as "Hospital". Please see
>> http://www.mipri.de/dl/background.png for an example.
>> "Kartenmerkmal - Straße" is correct, but "Krankenhaus - Unbekanntes
>> Gebiet" ("Hospital - Unknown area") is not.
>>
>> In my TYP file I am using 0x4b for the background, while my style (like
>> the default style) is assigning 0x0b to hospitals. I don't know if there
>> is any relation, but some days ago Gerd wrote:
>>
>>   > the code changed the background type 0x4b to 0x0b. I find this
>>   > also in the trunk version and in the current code of the display
>>   > tool, so I am not sure why this happens.
>>
>> Could it have to do with this?
>>
>>
>> There are other cases where the labels in Mapsource are wrong:
>>
>> If I am putting the mouse over a "real" hospital, the building gets
>> listed as "Marine", see http://www.mipri.de/dl/hospital.png. In this
>> case "Krankenhaus - Chirurgische Klinik" is correct,
>> "Marine - Chrirurgische Klinik" is not.
>>
>> Something similar happens with forests, but only if there is no "wood"
>> key defined. In this case, they are listed as "Autoservices - Wald"
>> ("Car repair - Forest") as in http://www.mipri.de/dl/wood.png.
>>
>> The examples were taken near the University of Ulm, Germany, but it
>> could be elsewhere. The mouse pointer did not get captured in my
>> screenshots, it was at the position in the upper left corner of the
>> popup menu.
>>
>> These wrong labels seem to appear only in Mapsource, I did not see them
>> on my GPS yet.
>>
>> Any ideas what could be going wrong here?
>>
>>
>> Thanks,
>>
>> Michael
>>
>>
>>
>> _______________________________________________
>> mkgmap-dev mailing list
>> mkgmap-dev at lists.mkgmap.org.uk
>> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>   		 	   		
>
>
>
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>





More information about the mkgmap-dev mailing list