| The Following User Says Thank You to vadp For This Useful Post: | ||
|
|
2011-12-04
, 12:42
|
|
Posts: 40 |
Thanked: 18 times |
Joined on May 2008
|
#2
|
I tried to import POIs from Google My Maps to maemo-mapper with gpsbabel. Unfortunately the conversion was not so good: all POIs come into a single category, thier descriptions are full of html garbage, and, I remember, unicode is getting lost.
So I've made a python script to convert kml files into poi.db directly. Here is a workflow:
- get your My Maps data as kml (have a look here http://freegeographytools.com/2010/e...ps-data-as-kml or here http://userscripts.org/scripts/show/82733);
- run poi2mapper.py with your kml file as a parameter:
poi2mapper.py my.kml
- you'll get my.db as a maemo-mapper poi.db. You can rename it to poi.db and use as it is.
To polish a thing a bit more there is something like my.sh.gen there. Basically, it helps to define POI categories in a more controllable way, also it's a shell script template to download POI icons (http://talk.maemo.org/showthread.php?t=11334) from the Net and link them to POI categories.
To make use of .sh.gen file you'd need to rename it w/o a .gen suffix (like my.sh), and to edit the categories. Then another run of poi2mapper.py will produce a new version of .db file with the categories defined at the .sh file. You then rename a new .sh.gen to .sh and use it to download icons for the categories.
You may also have a look to my another post Custom maps for maemo-mapper from BSB, OZI charts, and uncalibrated images. It contains a few scripts which help converting various rasters into maemo-mapper db maps (incl kml-calibrated pics).
Last edited by vadp; 2010-09-09 at 08:35. Reason: a sample of .sh file added