Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Downloading Maemo Mapper maps on PC, is it possible?

    Reply
    Page 2 of 4 | Prev |   1   2   3     4   | Next
    Lord Raiden | # 11 | 2009-06-08, 13:44 | Report

    Actually, now that I look at the code, it should work for any of the map URI's. I may not understand python all that well, but I understand enough to realize that a few tweaks would make this usable for anything. Thanks Sencer!!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Mara | # 12 | 2009-06-08, 14:04 | Report

    Originally Posted by Lord Raiden View Post
    Actually, now that I look at the code, it should work for any of the map URI's. I may not understand python all that well, but I understand enough to realize that a few tweaks would make this usable for anything. Thanks Sencer!!
    yeah.... it could be as simple as changing one line containing the map source URL. That seem to be on line 20.

    And if someone has more time... maybe all map repositories can be added and add few new lines of code to allow selection of what maps to use.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Lord Raiden | # 13 | 2009-06-08, 19:16 | Report

    Ugh, I'd love to do that for you, but again, I don't know python all that well. Otherwise I'd already have done it. Hmmf. Maybe this is finally an excuse for me to get around to learning Python.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Laughing Man | # 14 | 2009-06-08, 19:26 | Report

    Hmm have you tried using this with existing map databases so a new one doesn't have to be created?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Sencer | # 15 | 2009-06-08, 21:30 | Report

    It also works with an existing sqlite3-database used by maemo mapper.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Sencer For This Useful Post:
    Laughing Man

     
    Lord Raiden | # 16 | 2009-06-08, 22:40 | Report

    Woohoo! :d

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Laughing Man | # 17 | 2009-06-09, 03:41 | Report

    Hmm...

    Code:
    ./getmaps -t 35.231844 -b 38 -l -80.895381 -r -81 -z 6 GStreet 
    You asked for 3150 tiles
    Traceback (most recent call last):
      File "./getmaps", line 179, in <module>
        main()
      File "./getmaps", line 168, in main
        loadTile (db, x, y, zoom, i, numTiles)
      File "./getmaps", line 88, in loadTile
        if (tileExists (db, x, y, zoom)):
      File "./getmaps", line 75, in tileExists
        % (zoom, x, y))
    sqlite3.DatabaseError: file is encrypted or is not a database
    Tried renaming GStreet into GStreet.db and it still didn't help.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Laughing Man For This Useful Post:
    Sencer

     
    qviri | # 18 | 2009-06-09, 04:18 | Report

    Laughing Man, file/access permissions?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Sencer | # 19 | 2009-06-09, 04:48 | Report

    Uh, sorry, i think i misunderstood you. you cannot convert an "old" (non sqlite) database from mapper. an sqlite-database has the ending.sqlite not .db.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by Sencer; 2009-06-09 at 05:34. Reason: more information

     
    Sencer | # 20 | 2009-06-09, 09:38 | Report

    Laughing Man: Try "getmaps <dbfile> [options]"
    The help is wrong in this case... sorry! (normally it doesn't matter where you place the options but it seems it does in this script)

    Here is a demo:
    ./getmaps test.sqlite -t 68.78825 -l 17.00327 -b 62.50560 -r 15.6039 -z 9 -z 8 -z 7 -z 6 -z 5

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 2 of 4 | Prev |   1   2   3     4   | Next
vBulletin® Version 3.8.8
Normal Logout