logo separator

[mkgmap-dev] probably dumb question about style type

From Mike Baggaley mike at tvage.co.uk on Tue Sep 18 16:50:20 BST 2018

Hi Marc, 

The style manuals says:

If the type is not extended, it must be >= 0x0100 for a point, < 0x3f for a line, and < 0x7f for a

This suggests that single byte values are not valid for points. If you change it to 0x0152 it should work.


-----Original Message-----
From: Marc Cousin [mailto:cousinmarc at gmail.com] 
Sent: 18 September 2018 09:15
To: mkgmap-dev at lists.mkgmap.org.uk
Subject: [mkgmap-dev] probably dumb question about style type


I feel like I'm missing something obvious… so sorry in advance… I'm new to this program.

Starting from this
https://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types, I
wanted to set points with tags 0x0050, 0x0051 etc,
 in a style

For instance a line in the "points" file of the style to draw speed cameras...

highway=speed_camera | enforcement=maxspeed | enforcement=traffic_signals [0x0052 resolution 24]

When trying to add this line, I get 

Error in style: Error: invalid type 0x0052 for POINT in style file points, line 300

I'm using r4240 version.

The command is
mkgmap --dem=srtm --max-jobs --tdbfile --nsis --output-dir=target_dir --mapname=OSM_FRANCE_light --country-name="FRANCE" --family-id=6324 --family-name="OSM_light france" --series-name="OSM france map" --area-name="France" --country-abbr="FRA" --style-file=./road_only --precomp-sea=sea.zip --generate-sea --route --drive-on=detect,right --process-destination --process-exits --index --bounds=bounds.zip --location-autofill=is_in,nearest --x-split-name-index --housenumbers --remove-ovm-work-files --verbose -c ./template.args



More information about the mkgmap-dev mailing list