OpenStreetMap

Endelig kan jeg lave kort med mkgmap igen !

Posted by ablansinger on 18 March 2009 in English (English)

Efter i en længere periode ikke at have kunnet bruge mkgmap til at lave kort over danmark så har jeg nu fået det til at virke igen!

Jeg tror det gik galt da alle de danske adresser blev importeret fra KMS, og den store datamængde gjorde at min computer ikke kunne håndtere opgaven mere, - selvom jeg opgraderede fra 1GB til 2GB RAm så gik det ikke.

Jeg har nu lavet et lille program som stripper alle KMS noderne ud af mine osm filer før jeg putter dem ind i mkgmap, og så virker det igen.
Løsningen har jo dog nok noget begrænset holdbarhed da disse noder med tiden gerne skulle med over i GPS'en.

Jeg har forøvrigt bemærket at danmarks kortet på denne link:
http://www.osm4you.com/Europe/Denmark/denmark_gmapsupp_img.zip
heller ikke bliver opdataret mere, og her bruges også mkgmap. Et tilfælde ???

god jagt

Comment from Ævar Arnfjörð Bjarmason on 20 March 2009 at 15:01

Have you tried using splitter.jar to split up denmark before you make the map with mkgmap?

There's no reason why you need to make one giant .img file of Denmark, and if you split it up you could make it on your computer without stripping any data from the .osm file.

Hide this comment

Comment from ablansinger on 20 March 2009 at 21:42

Hi
Thank you for your input.
1) I have tried to split denmark into "Jylland" "Fyn" and "Sjæland", and not even the small "Fyn" part could I handle with mkgmap.
2) I have tried tu use the suggested splitter and it produced a set of img files, but mkgmap failed to to bring it all back together in one "gmapsupp.img file" I dont recall the error message though.

At some point I was wondering if it was only my computer or some of the OSM data for Denmark that was causing the problems, well I have a working solution for my self now but it seems there are still problems athttp://www.asmweb.de/OpenStreetMap/Europe/Denmark/ this coul dbe the same problem.

Anybody out there that could try to do a test with mkgmap on a denmak.osm file ?

ablansinger

Hide this comment

Comment from Ævar Arnfjörð Bjarmason on 22 March 2009 at 23:10

If you have a bunch of .img files you can combine them into a gmapsupp with:


java -jar mkgmap.jar --gmapsupp list.img of.img files.img

Also, to produce this without splitting in the first place you can add more virtual memory to your machine, it'll be slower but at least it won't run out of memory instead of finishing slowly .. eventually.

Hide this comment

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

    [Text](URL)
  • Image

    ![Alt text](URL)

Login to leave a comment