logo separator

[mkgmap-dev] Patch v3 for overview map

From GerdP gpetermann_muenchen at hotmail.com on Mon Apr 1 08:34:40 BST 2013

Hi Felix,

okay, I think I  got it. Attached is a patch that implements
some checks. They are based on the code in mkgmap, I don't know
if the limits are documented somewhere?

Gerd

check_type_range_v1.patch
<http://gis.19327.n5.nabble.com/file/n5755379/check_type_range_v1.patch>  


Felix Hartmann-2 wrote
> Well I know it's not used by default style, but there still are quite a 
> few old styles around using them - so maybe someone would think those 
> types are safe.  So maybe mkgmap should not accept types 0x3 for lines 
> at all anymore - or at least print a warning.
> On 31.03.2013 13:05, GerdP wrote:
>> Hi Felix,
>>
>> don't worry, the wrong code was not used for the creation of maps. It
>> shows
>> only when
>> creating the overview map.
>>
>> Gerd
>>
>>
>> Felix Hartmann-2 wrote
>>> On 31.03.2013 11:15, GerdP wrote:
>>>> Hi List,
>>>>
>>>> while trying to implement a decoder for data with extended types I
>>>> found
>>>> two bugs in the version 2 of the patch:
>>>> 1) the img format allows (normal) types 0x01 - 0x3f for lines and
>>>> 0x01-0x7f
>>>> for polygons,
>>>> the original code made no destinction
>>> Better restrict the original code in mkgmap to 0x01 - 0x3f for lines
>>> too. Or are there any compatibility advantages on old Garmin GPS units?
>>> AFAIK (and I'm pretty sure) Garmin themselves never used 0x4 - 0x7 for
>>> lines, but they did so for polygons (hence no compatibility problems in
>>> this range for polygons).
>>> Actually even 0x3 for lines has never been used by Garmin AFAIK and will
>>> not show up on all devices. (0x2a - 0x2f I'm not sure, but wouldn't use
>>> them either and resort to extended types - but I wouldn't exclude them
>>> by mkgmap). I think since mkgmap supports extended types (roughly 3
>>> years if I remember correctly) - 0x3 and up for lines is not a good way
>>> of creating a map which is supposed to work on all Garmin GPS
>>> devices....
>>>> 2) the first point of a line or shape was dropped, this caused esp.
>>>> many
>>>> lines to be missing
>>>> in the overview map.
>>>>
>>>> overview_v3.patch
>>>> &lt;http://gis.19327.n5.nabble.com/file/n5755292/overview_v3.patch&gt;
>>>>
>>>> The compiled binary is here:
>>>> http://files.mkgmap.org.uk/download/97/mkgmap.jar
>>>>
>>>> Gerd
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://gis.19327.n5.nabble.com/Patch-v3-for-overview-map-tp5755292.html
>>>> Sent from the Mkgmap Development mailing list archive at Nabble.com.
>>>> _______________________________________________
>>>> mkgmap-dev mailing list
>>>>
>>> mkgmap-dev at .org
>>>> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>> -- 
>>> keep on biking and discovering new trails
>>>
>>> Felix
>>> openmtbmap.org & www.velomap.org
>>>
>>> _______________________________________________
>>> mkgmap-dev mailing list
>>> mkgmap-dev at .org
>>> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://gis.19327.n5.nabble.com/Patch-v3-for-overview-map-tp5755292p5755311.html
>> Sent from the Mkgmap Development mailing list archive at Nabble.com.
>> _______________________________________________
>> mkgmap-dev mailing list
>> 

> mkgmap-dev at .org

>> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> -- 
> keep on biking and discovering new trails
> 
> Felix
> openmtbmap.org & www.velomap.org
> 
> _______________________________________________
> mkgmap-dev mailing list

> mkgmap-dev at .org

> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev





--
View this message in context: http://gis.19327.n5.nabble.com/Patch-v3-for-overview-map-tp5755292p5755379.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.


More information about the mkgmap-dev mailing list