amenity=embassy not handled by mkgmap ?

Hello, First, I would introduce myself: I am living in New Caledonia and I bought an Garmin nüvi 755 GPS because I have the possibility to import the data from openstreetmap.org. I have to travel to New Zealand next month, and during my last stay there I was sad of using my non-graphic GPS to report my position to an paper map.... especially during driving ;-) In the meantime, I got the virus and I added plenty of data to New Caledonia and I compiled an gmapsupp.img for NC. Now I noticed that an POI amenity=embassy added in OSM is not available in the produced gmapsupp.img (both with mkgmap v1303 et 1311) Is this an error in mkgmap? How can I make embassies correctly display in Garmin maps? Some of them are just tagged as amenity=public_building and display correctly on the Garmin map. But this seems to be an dirty work around, as the dedicated amenity=embassy exists. -- Kind regards Hendrik Oesterlin New Caledonia ___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

Hendrik Oesterlin wrote:
Hello,
First, I would introduce myself: I am living in New Caledonia and I bought an Garmin nüvi 755 GPS because I have the possibility to import the data from openstreetmap.org. I have to travel to New Zealand next month, and during my last stay there I was sad of using my non-graphic GPS to report my position to an paper map.... especially during driving ;-)
In the meantime, I got the virus and I added plenty of data to New Caledonia and I compiled an gmapsupp.img for NC.
Now I noticed that an POI amenity=embassy added in OSM is not available in the produced gmapsupp.img (both with mkgmap v1303 et 1311)
Is this an error in mkgmap?
How can I make embassies correctly display in Garmin maps?
Some of them are just tagged as amenity=public_building and display correctly on the Garmin map. But this seems to be an dirty work around, as the dedicated amenity=embassy exists.
Hi Hendrik, mkgmap's default style does not create POIs for amenity=embassy. The quick way to make it do so is as follows: Within the mkgmap directory, go to the resources/styles/default folder and edit the points file: Viz, add the line: amenity=embassy [0x2c09 resolution 20 default_name 'Embassy'] to it, save and close. This will add a building icon with a red roof (defined by the code 0x2c09, which will appear at resolution 20, with the default name Embassy if no name tag is given for that node) for any node tagged with amenity=embassy. Now that you have edited the default style, you will need to explicitly call it when you next compile your map: java -ea -jar mkgmap.jar --style-file=resources/styles/default mydata.osm etc Hope that helps, C

Ralf Kleineisel wrote:
Charlie Ferrero wrote:
amenity=embassy [0x2c09 resolution 20 default_name 'Embassy']
You might consider to use 0x3000 (Generic Emergency / Government) or 0x3003 (Public office). Good point. On my handset, 0x3003 is a blue building with a blue flag on and 0x3000 is a big brown building.

On Sun, Oct 25, 2009 at 11:22:05AM +0100, Ralf Kleineisel wrote:
Charlie Ferrero wrote:
amenity=embassy [0x2c09 resolution 20 default_name 'Embassy']
You might consider to use 0x3000 (Generic Emergency / Government) or 0x3003 (Public office).
0x3003 was already used by amenity=townhall, so it is a safer choice of these two, although slightly misleading, because the POI submenu says "City Hall". I committed that in r1420. I will test 0x3000 too and populate the Edge 605/705 column of the 0x30 (Community) section of http://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types while doing that. Marko

On Mon, Dec 07, 2009 at 09:16:57PM +0200, Marko Mäkelä wrote:
I will test 0x3000 too and populate the Edge 605/705 column of the 0x30 (Community) section of http://wiki.openstreetmap.org/wiki/OSM_Map_On_Garmin/POI_Types while doing that.
0x3000 does not show up in the Community menu, not even in All Categories. It occasionally flashed on the test map (at the tile border) as a brown building, but I was unable to select it. So, 0x3003 it is. An alternative would be 0x3007 (Government Office), which is already used by amenity=public_building. Marko

On Dec 7, 2009, at 20:16, Marko Mäkelä wrote:
0x3003 was already used by amenity=townhall, so it is a safer choice of these two, although slightly misleading, because the POI submenu says "City Hall". I committed that in r1420.
I just noticed the following blog entry: http://www.openstreetmap.org/user/Serpens/diary/9082 The entry indicates that many embassies are now tagged with ISO country codes (for example Germany embassies would be tagged with "country=de"). This may, or may not, be an interesting addition to the style file. Cheers.

Hi Clinton,
The entry indicates that many embassies are now tagged with ISO country codes (for example Germany embassies would be tagged with "country=de"). This may, or may not, be an interesting addition to the style file.
How would you do it? Prefix or postfix the POI name with ${country|def:}? Or perhaps define ${country} as a short label and ${name} as a long label, similar to ${ref} and ${name} for highways? Marko

On Oct 25, 2009, at 10:42, Hendrik Oesterlin wrote:
Now I noticed that an POI amenity=embassy added in OSM is not available in the produced gmapsupp.img (both with mkgmap v1303 et 1311)
I assume this is the case because there is no specific Garmin POI type for embassies. (Please correct me if I am wrong; I have not yet confirmed this.) You can, however, add your own mapping for amenity=embassy to a Garmin POI type of your choice. Look at the information regarding style files. In particular, you will probably want to copy the default mkgmap style files to your own directory, and add an entry to the "points" file. There is some documentation on doing this in mkgmap, and in the OSM Wiki. Let us know if you need more help. Cheers, and have fun! :-)
participants (5)
-
Charlie Ferrero
-
Clinton Gladstone
-
Hendrik Oesterlin
-
Marko Mäkelä
-
Ralf Kleineisel