Which .osm nodes/elements/attributes does mkgmap use & ignore?

Hi I'm trying to convert a .kml (google earth) to .osm so I can use mkgmap to convert to .img. In the .osm file I've noticed that mkgmap appears to ignore the <bounds> tag. To simplify my conversion, are there any others that aren't utilized? For instance, in the <node> node does it need to have the user, usid, version or changeset attributes? Is there a wiki page that I've missed, that lists this info? Cheers Dave F.

You're very brave to think of translating kml into osm - in theory it shouldn't be a problem as both are txt files ; it may be that ignoring authorship/timestamps etc can affect the creation of an img file ; perhaps start with one node ; the bounds tag are essential for defining the area limits so you would have to work out the max and min lats / longs from your kml data. Good luck! -------------------------------------------------- From: "Dave F." <davefox@madasafish.com> Sent: Saturday, February 13, 2010 3:10 PM To: "mkgmap" <mkgmap-dev@lists.mkgmap.org.uk> Subject: [mkgmap-dev] Which .osm nodes/elements/attributes does mkgmap use &ignore?
Hi
I'm trying to convert a .kml (google earth) to .osm so I can use mkgmap to convert to .img.
In the .osm file I've noticed that mkgmap appears to ignore the <bounds> tag.
To simplify my conversion, are there any others that aren't utilized?
For instance, in the <node> node does it need to have the user, usid, version or changeset attributes?
Is there a wiki page that I've missed, that lists this info?
Cheers Dave F.

Hi
I'm trying to convert a .kml (google earth) to .osm so I can use mkgmap to convert to .img.
In the .osm file I've noticed that mkgmap appears to ignore the <bounds> tag.
To simplify my conversion, are there any others that aren't utilized?
For instance, in the <node> node does it need to have the user, usid, version or changeset attributes?
Is there a wiki page that I've missed, that lists this info?
Cheers Dave F.
You could try converting the file with gpsbabel
gpsbabel -i kml -f test.kml -o osm -F test.osm And then see if you are happy with the translation, or if you still need to add more features. At least you will have a starting point on what tags you need. Garvan

Garvan & maew wrote:
You could try converting the file with gpsbabel
gpsbabel -i kml -f test.kml -o osm -F test.osm
And then see if you are happy with the translation, or if you still need to add more features. At least you will have a starting point on what tags you need. Thanks for the replies. I probably should have said the main purpose of this exercise is to teach myself XSL which is used to transform one XML (KML) to another (OSM).
My KML file has a parent/child folder structure eg there's are folders called 'Tall Buildings' & 'Short Buildings' that contain list of tall & short buildings respectively. Unfortunately GPSBabel appears to remove this folder structure & just lists all the buildings together; so I have no way to identify them as either tall or short to give them different icons in the IMG file. Incidently GPSBabel doesn't produce the <bounds> tag yet still converts to an IMG successfully. For a point GPSBabel produces just these tag/attributes: <node id='-4331' visible='true' lat='51.155506' lon='-2.575480'> So I'll just use those Cheers Dave F.
participants (3)
-
Dave F.
-
Garvan & maew
-
n willink