#219 Native Support of Viewranger

closed
r_x
5
2012-09-18
2011-12-10
telemaxx
No

Hallo r_x,
i just purchased Viewranger. It is a very nice App.
Avaible for Android, Iphone and Symbian.

At the Moment i craete my atlasthe way descripted in the old Forum.
Many manual Steps.
The disadvantage is that the Folder Structure is not as inside "Atlas Content" of Mobac.
Mobac cretes Folders with the Name of the Mapsource eg "Google Maps"

Would be nice to have an native Atlas Format.
Tiles with no extensions in png Format.
And the Beahavier of the Folder Names should be like Trekbuddy etc
So i could give them a Number as Name, like Vieranger need it.

Maybe you find some time to implement it sometimes.

Thanks in advance,
Thomas

Discussion

  • r_x

    r_x - 2012-02-05

    If you are still interested in this atlas format please provide more details and a sample atlas.

     
  • telemaxx

    telemaxx - 2012-02-05

    sample atlas

     
  • telemaxx

    telemaxx - 2012-02-05

    hi r_x,
    i just uploadet a sample mini sample atlas,
    (was not easy, maxsize is here 256k...)

    detailed informations can be found here:
    http://support.viewranger.com/wikihelp/index.php/Map_cache_structure
    Bing tile we can not use of course, tilesize is 350px.

    It is just an normal atlas, just no extensions and png format.

    Viewranger using numbers as Layer name, but i prefer using the names which i key in in mobac.
    So i coould copy the content of the mobac layer in the VR Layer like i want.

    I think "OSMtracker tile store" is close that what we need. but the Layername should nor be the name of the mapsource, it should be the name of my selfdefined layer.

    Thank you for youre work r_x,
    Thomas

     
  • telemaxx

    telemaxx - 2012-03-25

    Pleas don´t forget this threat.
    I am still interested for this feature.
    By the way, at he Moment "Viewranger" is a free Application.
    Runs on Symbian, Android and apple.

    Thanks,
    Thomas

     
  • r_x

    r_x - 2012-03-26

    Taking a closer look the atlas format looks more like OSMTracker than TrekBuddy.

    The following test version has Viewranger support. JPEG formats as custom tile format are disallowed, Maps providing JPEG tiles are automatically converted to PNG if no custom tile image format is specified.

    http://www.datafilehost.com/download-6c60e5ed.html

    Please test it and give feedback. Additionally a section for README would be nice.

     
  • telemaxx

    telemaxx - 2012-03-26

    Thanks a lot for you're work!

    I do a short test today.
    What i mean when i say "like Trekbuddy" is this:
    "atlas" -> "new atlas" Trekbuddy tared.
    I select "OpenStreetmap Hikenbikemap.de" as Mapsource and select an area.
    than i key in "osm" as name and click "add selection"
    now "create atlas"
    the out put now is now:
    VR_2012-03-26_221716\OSM\OSM 08
    uses my name "osm" as foldername

    if i select viewranger or OSMTracker the output is:
    VR_2012-03-26_220628\OpenStreetMap Hikebikemap.de\8\135
    (uses the mapsourcename as foldername)

    best would be:
    VR_2012-03-26_221716\OSM\8\135

    And i am not sure if it good, that i can select "recreate/adjust map".
    If i select this i can also choose jpg, must always be png.
    Tomorrow i make some test with png4bit 8bit 24bit and report here.
    Maybe it would be the best to gray out "recreate/adjust map" completely and create just png with the
    correct colordepth which i try to figure out tomorrow.

    And of course i write a section for the Readme.

    Time for Bed,
    Thomas

     
  • r_x

    r_x - 2012-03-27

    Hi Thomas.

    OK now I understand you were referring to the naming of the directories - I was referring to the tile numbering and ordering scheme. Changing the structure is not a problem.

    Regarding the JPEG formats you can try to use them you should get an error message when starting to create the atlas.

     
  • telemaxx

    telemaxx - 2012-03-27

    Hi r_x,
    1.)yes you are right, when i select jpeg i get sometimes error "The jpeg image Format is not supported by open JDK. Please select a different format." but no Problem because we need png. Maybe you can remove jpeg format from the list.

    2.) when i select a mapsource which delivers jpeg(e.g. google-terrain) and i deselect "recreate/adjust map tile" i get exception:

    Version: Mobile Atlas Creator (MOBAC) 1.9.5 (1982)
    Platform: Windows XP (5.1) (windows)
    Java VM: Java HotSpot(TM) Client VM (1.6.0_31-b05)
    CPU cores: 2

    Thread: AtlasThread 11

    Error hierarchy:
    NullPointerException: null

    java.lang.NullPointerException
    at mobac.program.tiledatawriter.TileImagePngDataWriter.processImage(TileImagePngDataWriter.java:59)
    at mobac.program.tiledatawriter.TileImagePng8DataWriter.processImage(TileImagePng8DataWriter.java:33)
    at mobac.program.atlascreators.tileprovider.PngTileProvider.getTileData(PngTileProvider.java:47)
    at mobac.program.atlascreators.OSMTracker.createTiles(OSMTracker.java:87)
    at mobac.program.atlascreators.OSMTracker.createMap(OSMTracker.java:75)
    at mobac.program.AtlasThread.createMap(AtlasThread.java:351)
    at mobac.program.AtlasThread.createAtlas(AtlasThread.java:206)
    at mobac.program.AtlasThread.run(AtlasThread.java:131)

    with "recreate/adjust png" = on, it is OK

    3.) the atlas output looks like:
    VR_2012-03-27_195303\terain\terain 15\15\17327

    can you remove the second level ?
    in this case "terain 15" that i get:
    VR_2012-03-27_195303\terain\15\17327

    i did the tests with svn version 1982

    Thanks,
    Thomas

     
  • r_x

    r_x - 2012-03-27

    Both fixed in REV 1984.

    Unfortunately the format list is the same for all atlas formats and can not be changed at the moment.

     
  • telemaxx

    telemaxx - 2012-03-28

    now it seems to work very well.
    The "Read me" is located here:
    http://dl.dropbox.com/u/48391219/README_viewranger.zip
    Now i go a bit Biking and test my new Maps :-)

    Tomorrow i close this ticket.

    Thank you for you're support r_x,
    Thomas

     
  • telemaxx

    telemaxx - 2012-03-29

    works like a charm

     
  • r_x

    r_x - 2012-03-29

    Is there any reason why you wrote "Do not select Recreate/adjust map tiles." in the readme?
    May be someone want to use the PNG 8bit or 4bit modes?

    BTW: I implemented also the zoom level check 3 < zoom < 18 so that there will be an error message shown.

     
  • telemaxx

    telemaxx - 2012-03-29

    "Is there any reason why you wrote "Do not select Recreate/adjust map
    tiles." in the readme?
    May be someone want to use the PNG 8bit or 4bit modes?"

    Yes some (small)reasons:
    1.)I think it is safest, because than nobody select jpeg or other wrong settings.
    2.)I know 8bit and 24bit are working, 4bits i have not tested.
    3.)And i think Atlas creation its a bit faster, because png Tiles must not be converted.
    4.)VR run´s only on Symbian/Android and iphone. They should have space enough.

    Maybe we should write "Recommendation is to uncheck recreate/adjust map
    tiles. But if checked than it must be png Format"

    What do you think ?

    Greetings,
    Thomas

     
  • telemaxx

    telemaxx - 2012-03-29

    i just saw you made a new Version without jpeg. Super.

    I did already download the new Version a make now some tests with different Setting.

    I report later...

     
  • telemaxx

    telemaxx - 2012-03-29

    OK, 4bit is also working, of course colors are not the best, only 16 shades.
    So we/you can change the README and remove "Do not select Recreate/adjust map tiles", or write recommendation is...

    By the way i found a little bug with VR Format, which produces a NPE:

    Version: Mobile Atlas Creator (MOBAC) 1.9.5 (1987)
    Platform: Windows XP (5.1) (windows)
    Java VM: Java HotSpot(TM) Client VM (1.6.0_31-b05)
    CPU cores: 2

    Thread: AtlasThread 4

    Error hierarchy:
    NullPointerException: null

    java.lang.NullPointerException
    at mobac.optional.JavaAdvancedImaging.colorReduceMedianCut(JavaAdvancedImaging.java:36)
    at mobac.program.tiledatawriter.TileImagePng8DataWriter.processImage(TileImagePng8DataWriter.java:32)
    at mobac.program.atlascreators.tileprovider.PngTileProvider.getTileData(PngTileProvider.java:48)
    at mobac.program.atlascreators.OSMTracker.createTiles(OSMTracker.java:87)
    at mobac.program.atlascreators.OSMTracker.createMap(OSMTracker.java:75)
    at mobac.program.AtlasThread.createMap(AtlasThread.java:351)
    at mobac.program.AtlasThread.createAtlas(AtlasThread.java:206)
    at mobac.program.AtlasThread.run(AtlasThread.java:131)

    to reproduce you need following files:
    http://dl.dropbox.com/u/48391219/ICAO_BEAN.zip the beanshell mapsource
    http://dl.dropbox.com/u/48391219/mobac-profile-VR_exception.zip the mobac profile.

    The exception occurs, if red-crossed tiles are selected, like in the sample profile.
    Only with the attached beanshell mapsource and only with VR Format, not with Trekbuddy, Sportstracker, OSM Tracker

    May you have a Idea. Its not a big Problem.

    Thomas

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks