Atlas (mapsforge Java application)

1,778 views
Skip to first unread message

emux

unread,
Mar 4, 2015, 4:16:24 AM3/4/15
to
Atlas is a Java map viewer of vector maps and online tile sources.

Features
- Map file chooser (Ctrl+O)
- Render theme file chooser (Ctrl+Shift+O)
- Reload map (F5)
- Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Satellite)
- Compatible with OpenAndroMaps

It is free, closed source application,
using mapsforge rescue 0.4.0-snapshot.

Emux
Cruiser - Atlas

fzk

unread,
Jan 26, 2014, 9:29:41 AM1/26/14
to mapsfo...@googlegroups.com
Impressive ... perhaps the start of something bigger. I have testet the jar-file (1.0.5) on OS X without any problems. If you plan improvements here's something: Make it possible to switch easily between all maps. Currently it's required to choose always map and theme if one wants to switch between online and offline maps.

Cheers Klaus


Am Sonntag, 26. Januar 2014 14:35:24 UTC+1 schrieb emux:
Atlas is a Java map viewer of vector maps and online tile sources.


Features
- Map file chooser (Ctrl+O)
- Render theme file chooser (Ctrl+Shift+O)
- Reload map (F5)
- Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Satellite)
- Compatible with OpenAndroMaps

It is free, closed source application,
using mapsforge rescue 0.4.0-snapshot.

emux

unread,
Jan 26, 2014, 10:13:27 AM1/26/14
to mapsfo...@googlegroups.com
Hi,

Atlas development is surely an ongoing process
and any suggestions are most welcomed.

Klaus thanks for the report about running at OS X.

A clarification regarding map / render theme file opening.
Atlas as Cruiser, when it opens a map file, for convenience
it scans also the map directory for the proper render theme file.
And tries to open any render theme file with same file name as the map file
e.g. country.map and country.xml or country.map.xml
before it falls to the default Osmarender theme.

fzk

unread,
Jan 26, 2014, 11:39:21 AM1/26/14
to mapsfo...@googlegroups.com
Here my wishlist of map essentials:
- address or POI: search for it
- track: import and display it
- route: calculate and export it

Klaus
Message has been deleted

emux

unread,
Jan 26, 2014, 3:19:40 PM1/26/14
to mapsfo...@googlegroups.com
Hi Klaus,

Thanks for the suggestions.

IMHO Atlas now is very useful besides as viewer,
also as a tool during map / render theme building.

Specially with debug features like Reload (F5),
which was lately added also at Cruiser and Cruiser Beta.

But eventually I agree, Atlas could be Cruiser's alter ego.
At Cruiser there will be implemented export / import of routes / tracks.
And Atlas will get Routing, Search, POI etc.

womisa

unread,
Jan 28, 2014, 10:56:33 AM1/28/14
to mapsfo...@googlegroups.com
Hi

i have made a simple desktop testsolution with Mapsforge-Rescue,Brouter,Graphhopper for me to explore the frameworks ==> http://www.augilabs.de/download/beta/MySwingMapViewer.rar

Best regards
Achim

emux

unread,
Feb 12, 2014, 4:48:08 AM2/12/14
to mapsfo...@googlegroups.com
Atlas 1.0.6 (mapsforge rescue 0.4.0-snapshot)

- Zoom in / out via mouse wheel around mouse cursor position
- Improved Osmarender theme (new icon set)
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Terrain, MapBox Labeled Satellite, MapBox Satellite)
- Latest mapsforge
- Improvements and bug fixes

Best regards, Emux
Cruiser - Cruiser Beta - Atlas


On Sunday, January 26, 2014 3:35:24 PM UTC+2, emux wrote:
Atlas is a Java map viewer of vector maps and online tile sources.


Features
- Map file chooser (Ctrl+O)
- Render theme file chooser (Ctrl+Shift+O)
- Reload map (F5)
- Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Satellite)
- Compatible with OpenAndroMaps

It is free, closed source application,
using mapsforge rescue 0.4.0-snapshot.

vklein

unread,
Feb 17, 2014, 5:19:19 PM2/17/14
to mapsfo...@googlegroups.com
Hi,
I made some test with Atlas1.0.6.exe. Renders very fast on my I7.
Then I made some tests with  a self build map from the StAnna region in sweden.
There are some seamark nodes like bouys in the map which I try to render.

<!-- begin opensea map -->
     <rule  e="node" k="seamark:type" v="*" >
          <rule e="node" k="seamark:type" v="buoy_lateral">
              <rule e="node" k="seamark:buoy_lateral:colour" v="red">
                 <symbol src="file:d:\Atlas_Mapsforge\seamark_symbols\buoy_lateral_red.png" />
                 <rule e="node" k="*" v="*" zoom-min="14">
               <caption k="name" dy="+30" font-style="bold" font-size="13" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
               </rule>
              </rule>
               <rule e="node" k="seamark:buoy_lateral:colour" v="green">
                 <symbol src="file:d:\Atlas_Mapsforge\seamark_symbols\buoy_lateral_green.png" />
                 <rule e="node" k="*" v="*" zoom-min="14">
               <caption k="name" dy="+30" font-style="bold" font-size="13" fill="#000000" stroke="#ffffff" stroke-width="2.0" />
               </rule>
               </rule>
          </rule>
 ......
Problem:  the symbols are not displayed on the map.
Maybe it is a problem of the path, I have tried both win style with \ and unix style with /,
both do not work.The names of the bouys show up from 500m , I assume this is zoom = 14, but not the symbols.

The seamark_symbols folder contains the pngs.
 I get no error message that there is something wrong with the syntax of the renderer.
The path to the renderer is d:\Atlas_mapsforge\openseamaprenderer002.xml

There are some other seamark ways in the map, they are rendered correctly.
Even some depth contour lines are displayed with right color and text so the renderer seems to work.

help appreciated

regards

Victor

emux

unread,
Feb 18, 2014, 3:07:53 AM2/18/14
to mapsfo...@googlegroups.com
Hi Victor,

Indeed the problem arises from the resources paths.
You use Windows absolute paths, that mapsforge is not prepared to handle.

The only check for absolute paths that it makes
is if they start with '/' which is Linux / Android style.
We must not forget that mapsforge origin was Android.

Maybe we should add support for Windows absolute paths, like c:/ d:/ etc.

But why are you using absolute paths at your render theme xml?
IMHO relative paths are much more easy to handle,
for example in cases you move the entire theme folder.


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

vklein

unread,
Feb 18, 2014, 11:57:26 AM2/18/14
to mapsfo...@googlegroups.com
Hi Emux,

the absolute path was the last idea to get things work. On Android there are a lot of problems to get references working from a external sdcard on various devices like the dell streak, a samsung 10 ' tablet , a medilon lifetab 10' and a asus nexus.They all have different pathes to the external sdcard like /mnt/sdcard ,/mnt/extsdcard, /mnt/sdcard2 and so on. So my last idea was to make a testrenderertheme with absolute path in it.

I prefer to use relative path, like the references in openandromaps and their themes.

The renderertheme is in the d:\Atlas_Mapsforge directory, also the seamark_symbols folder.

e,g. the green bouy has the absolute reference file:d:\Atlas_Mapsforge\seamark_symbols\buoy_lateral_green.png

What relative reference should be used?


regards
Victor

vklein

unread,
Feb 18, 2014, 12:06:01 PM2/18/14
to mapsfo...@googlegroups.com
Hi Emux,

Problem is solved, my fault was a additional / at the beginning of the path.

The correct path is  <symbol src="file:seamark_symbols/buoy_lateral_green.png" />

and it works

regards

Victor

emux

unread,
Feb 18, 2014, 12:06:34 PM2/18/14
to mapsfo...@googlegroups.com
Hi Victor,

You can try:
file:seamark_symbols\buoy_lateral_green.png


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

emux

unread,
Feb 18, 2014, 12:15:50 PM2/18/14
to mapsfo...@googlegroups.com
Yes this is the right syntax.

file:/seamark_symbols/buoy_lateral_green.png
would also work.

Many themes use the '/' at start of resources path,
but still mean relative path.

So mapsforge was patched to treat file:/ prefix
also as relative path, if absolute check fails


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

emux

unread,
Feb 21, 2014, 2:20:17 AM2/21/14
to mapsfo...@googlegroups.com
Hi all,

Continuing to play with rescue-exp and render theme v4,
and having the need for flexible apps (using latest mapsforge)
to test maps and themes:

- I'm willing to advance Cruiser from mapsforge 0.3.1 to rescue
and Cruiser Beta from mapsforge rescue to rescue-exp branch.

- Also as Atlas is using mapsforge rescue,
I'll publish Atlas Beta with mapsforge rescue-exp branch.

So Beta editions of Cruiser and Atlas are going to be published frequently,
as mapsforge rescue-exp is getting new engine / render theme features.

(Still waiting for rescue to become official 0.4 release)


Best regards, Emux
Cruiser - Cruiser Beta - Atlas

On Sunday, January 26, 2014 3:35:24 PM UTC+2, emux wrote:
Atlas is a Java map viewer of vector maps and online tile sources.


Features
- Map file chooser (Ctrl+O)
- Render theme file chooser (Ctrl+Shift+O)
- Reload map (F5)
- Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Satellite)
- Compatible with OpenAndroMaps

It is free, closed source application,
using mapsforge rescue 0.4.0-snapshot.

Tobias

unread,
Feb 21, 2014, 1:33:59 PM2/21/14
to mapsfo...@googlegroups.com
That's great news for people like me who aren't developers but are very interested in rescue development, thanks!
Best regards,
Tobias

emux

unread,
Feb 27, 2014, 2:39:26 AM2/27/14
to mapsfo...@googlegroups.com
Atlas 1.0.7 (mapsforge rescue 0.4.0)
Atlas Beta 1.1.0 (mapsforge rescue-exp 0.5.0 & render theme v4)


- Latest mapsforge
- Improvements and bug fixes

Atlas Beta is going to be published frequently,
as mapsforge rescue-exp is getting new features.


Best regards, Emux
Cruiser - Cruiser Beta


On Sunday, January 26, 2014 3:35:24 PM UTC+2, emux wrote:
Atlas is a Java map viewer of vector maps and online tile sources.


Features
- Map file chooser (Ctrl+O)
- Render theme file chooser (Ctrl+Shift+O)
- Reload map (F5)
- Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Satellite)
- Compatible with OpenAndroMaps

It is free, closed source application,
using mapsforge rescue 0.4.0-snapshot.

emux

unread,
Mar 9, 2014, 8:21:02 AM3/9/14
to mapsfo...@googlegroups.com
Atlas Beta 1.1.1 (mapsforge rescue-exp 0.5.0 & render theme v4)

With (automated) map style menu (Alt+Shift+O)
based on active render theme v4 styles
and latest mapsforge.


Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


womisa

unread,
Mar 9, 2014, 11:37:33 AM3/9/14
to mapsfo...@googlegroups.com
Hi emux,

i have dowload the last Atlas version and the Rendertheme-V4 xml file from this Thread (Tobias)....

.....but how can i play with Mapstyles (The render theme does not contain map style).

Where can I download an xml file with Mapstyles for the desktop?

Thanks Achim


Ps. I have changed the assets to files and svg to png. This works for me.

emux

unread,
Mar 9, 2014, 11:52:04 AM3/9/14
to mapsfo...@googlegroups.com
You can get the latest updated rendertheme-v4 with its resources from Samples app,
where it's maintained under the assets folder.
You'll need the rendertheme-v4.xml and patterns & symbols folders.
The map styles are at top of xml.

And always someone has to replace assets: with file:
and .svg with .png in order to use it with Java.

Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


womisa

unread,
Mar 9, 2014, 12:34:28 PM3/9/14
to mapsfo...@googlegroups.com
Hi emux,

thanks for the answer. I think it is the wrong link. it should be safe this be (rescue-exp) http://code.google.com/r/ludwigbrinckmann-mapsforge/source/browse?name=rescue-exp#git%2FApplications%2FAndroid%2FSamples%2Fassets%2Frenderthemes

Now it works!

Thanks Achim

emux

unread,
Mar 9, 2014, 12:41:16 PM3/9/14
to mapsfo...@googlegroups.com
Of course, you are absolutely right.
Sorry for the wrong info!

The render theme v4 exists at rescue-exp branch.


Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


Pete Saxton

unread,
Mar 14, 2014, 9:52:24 AM3/14/14
to mapsfo...@googlegroups.com
Hi Emux,
Could I also request you add the option to display the zoom level on Atlas?
Thanks, Great work so far! :-)
Pete


On Sunday, 26 January 2014 13:35:24 UTC, emux wrote:
Atlas is a Java map viewer of vector maps and online tile sources.


Features
- Map file chooser (Ctrl+O)
- Render theme file chooser (Ctrl+Shift+O)
- Reload map (F5)
- Map file info
- Debug: Draw tile boundaries
- Debug: Show coordinates on tiles
- Online tile providers (MapQuest, Mapnik, Cycle Map, MapBox Satellite)
- Compatible with OpenAndroMaps

It is free, closed source application,
using mapsforge rescue 0.4.0-snapshot.

emux

unread,
Mar 14, 2014, 10:01:47 AM3/14/14
to mapsfo...@googlegroups.com
Thanks Pete,

You can check at 'Debug' menu the 'Tile coordinates' option
where it shows also the zoom level.

Is it what you're asking for?


Best regards, Emux
Cruiser - Cruiser Beta
Atlas - Atlas Beta


Pete Saxton

unread,
Mar 14, 2014, 12:49:08 PM3/14/14
to mapsfo...@googlegroups.com
YES! Thank you - I should have looked a bit harder ;-)
Thanks again, Pete
Message has been deleted

Max

unread,
Mar 27, 2014, 10:09:35 AM3/27/14
to mapsfo...@googlegroups.com
Hi emux.

I tested your app Atlas which works pretty well notably with the zoom and the wheel of the mouse.
In the Sample there is no example of use with wheel and Java Swing.

Can you provide the code you use for the zoom with the wheel?

Regards.

Max

emux

unread,
Mar 27, 2014, 10:21:47 AM3/27/14
to mapsfo...@googlegroups.com
In the Sample there is no example of use with wheel and Java Swing.

Actually there is a Java example at rescue branch, it's the SwingMapViewer sample.
Take a look there at MouseEventListener class.

--
Message has been deleted

Max

unread,
Mar 27, 2014, 10:36:03 AM3/27/14
to mapsfo...@googlegroups.com
I previously watch this code but it only zoom at the center of the map.

What I need is the same thing Atlas do:

ZoomIn and ZoomOut centered on the position of the mouse on the screen.
I see that it exist code in Android Sample but not for Swing...

You can't post the code for the zoom you use in Atlas?

Regards.

Max.

emux

unread,
Mar 27, 2014, 1:59:05 PM3/27/14
to mapsfo...@googlegroups.com
Atlas is a closed source application.

But the implementation is like Android double tap.
- Compute lat,long of MouseWheelEvent point with MapViewProjection.fromPixels

Then either:
- Find it's distance from map center mapViewDimension.getDimension().getCenter()
- Set pivot point with mapViewPosition.setPivot
- Use mapViewPosition.moveCenterAndZoom by the given amount of pixels and zoom level diff

Or more simple:
- Use mapViewPosition.setCenter & mapViewPosition.zoom to directly move to mouse point

Christian Pesch

unread,
Mar 28, 2014, 3:02:21 AM3/28/14
to mapsfo...@googlegroups.com
I have just solved that problem.

You could have a look at my experimental RouteConverter-mapsforge branch.
Have a look at MapViewMouseEventListener#zoomToMousePosition

Max

unread,
Mar 28, 2014, 8:56:11 AM3/28/14
to mapsfo...@googlegroups.com
Hi Christian,

I tested your code with the SwingSample of rescue.
You can find attached code of modified file MouseEventListener.java
Modification are very small but nothing works correctly (Atlas works pretty much better).

It seem that map jump erradically when zoom with wheel is more that one step (one "click step" on the wheel).

You can find the code attached.

PS: It will be interesting to let this in Swing Sample when it will work.

Regards
Max.
MouseEventListener.java

Christian Pesch

unread,
Mar 28, 2014, 9:16:04 AM3/28/14
to mapsfo...@googlegroups.com
Hi Max,

actually I never saw zoomLevels other than +1 and  -1. How do you do that?

I guess the problem is in the lines 

int horizontalDiff = (int) ((centerPoint.x - mousePoint.x) * (zoomLevelDiff > 0 ? 0.5 : -1.0));
int verticalDiff = (int) ((centerPoint.y - mousePoint.y) * (zoomLevelDiff > 0 ? 0.5 : -1.0));

where the constants might have to be something of the power like below

zoomLevel / constant
1  / 0.5
-1 / 1.0
2 / 0.25?
-2 / 2.0?
3 / 0.125?
-3 / 4.0?

Could you check if that makes sense?

Kind regards
Christian

Max

unread,
Mar 28, 2014, 10:13:58 AM3/28/14
to mapsfo...@googlegroups.com
I looked for that I always get -1 or 1.
But there are for example 4 event -1 which arrive consecutively.
The animation is started but not finished and I think the next zoom is bad computed.

Have you tested to zoom In and out with SampleApp and the file I posted?

Regards.
Max.
Message has been deleted

emux

unread,
Mar 28, 2014, 10:57:01 AM3/28/14
to mapsfo...@googlegroups.com
The error initiates from the unnecessary consecutive conversions between pixels and coordinates.
Like the implementation of Android double tap,
only one conversion is needed, the mouse point to geographic coordinates for use as pivot.
All other data are already provided.

Christian Pesch

unread,
Mar 29, 2014, 6:34:09 AM3/29/14
to mapsfo...@googlegroups.com
Thank you very much for the hint. I'm still wondering why I came up with that complex solution :-(

Actually the following snippet produces the same horizontalDiff  and verticalDiff 

    public void zoomToMousePosition(byte zoomLevelDiff, int mouseX, int mouseY) {
        LatLong mouse = new MapViewProjection(mapView).fromPixels(mouseX, mouseY);
        mapView.getModel().mapViewPosition.setPivot(mouse);

        Dimension dimension = mapView.getDimension();
        int horizontalDiff = (int) ((dimension.width / 2 - mouseX) * (zoomLevelDiff > 0 ? 0.5 : -1.0));
        int verticalDiff = (int) ((dimension.height / 2 - mouseY) * (zoomLevelDiff > 0 ? 0.5 : -1.0));
        mapView.getModel().mapViewPosition.moveCenterAndZoom(horizontalDiff, verticalDiff, zoomLevelDiff);
    }

@Max that works well most of the time within RouteConverter - except when moving the mouse wheel like crazy: that sometimes lead to jumps of the map center.

Kind regards
Christian
Message has been deleted

emux

unread,
Apr 5, 2014, 1:43:40 PM4/5/14
to mapsfo...@googlegroups.com
Atlas 1.0.11 (mapsforge rescue 0.4.0)
Atlas Beta 1.1.6 (mapsforge rescue-exp 0.5.0 & render theme v4)

With the long awaited features:

- Bookmarks (Ctrl+D) (map, render theme, map style, map position).
Switch easily among all maps.

- User preferences (map, render theme, map style, map position, debug settings, map / render theme directories, window).
Atlas remembers last user settings.

And of course the latest mapsforge.

--
Emux
Cruiser - Atlas

fzk

unread,
Apr 6, 2014, 5:40:16 AM4/6/14
to mapsfo...@googlegroups.com
> Switch easily among all maps.

How is it possible to switch (easily) between a vector and an online map?

Klaus

PS: Thanks for the new release.

emux

unread,
Apr 6, 2014, 6:12:50 AM4/6/14
to mapsfo...@googlegroups.com
Going from vector map to online map (via the online menu) it's easy,
as regularly the online maps cover the whole earth.

Going from online map to vector map (via the vector menu),
it's more complicated as vector maps cover only a specific country, city, region etc.
Moreover vector maps have also render themes as additional files.
But if a render theme is at map directory and has the same name,  then it's opened automatically.

Above logic exists at both Atlas and Cruiser.

The new feature of bookmarks permits us to save an existing map view:
- Map (vector or online)
- Render theme (if exists)
- Map style (if exists)
- Map position (latitude, longitude and zoom level)

So eventually you can switch easily among various combinations of the above elements,
online maps and vector maps (with specific render theme and style) at specific locations.

fzk

unread,
Apr 6, 2014, 9:47:14 AM4/6/14
to mapsfo...@googlegroups.com
> But if a render theme is at map directory and has the same name,  then it's opened automatically.

Hmm ... same name and at map directory ... what does that mean?
Could you give me an example?

Cheers Klaus
Message has been deleted

emux

unread,
Apr 6, 2014, 10:24:12 AM4/6/14
to mapsfo...@googlegroups.com

Could you give me an example?

Certainly, it's actually an old feature.

Atlas and Cruiser, when they open a "new" map file via map menu,
for user convenience, they also scan the map directory for the proper render theme file.
And automatically try to open any render theme file with same file name as the map file
e.g. country.map and country.xml, city.map and city.xml
If above process is not possible, they set the default Osmarender theme at map opening
and then of course user can open its desired render theme.

emux

unread,
Apr 23, 2014, 1:01:22 PM4/23/14
to mapsfo...@googlegroups.com
Atlas / Atlas Beta download location has changed.
You can always find it via its OpenStreetMap Wiki.

Emux

unread,
May 21, 2014, 7:16:53 AM5/21/14
to mapsfo...@googlegroups.com
Atlas 1.0.13 (mapsforge master)
Atlas Beta 1.1.9 (mapsforge dev)

Both have:
- Render theme style selection
- Compatible with render theme v4

Emux

unread,
Jul 27, 2014, 11:55:25 AM7/27/14
to mapsfo...@googlegroups.com
Atlas 1.0.15  (mapsforge master)
Atlas Beta 1.1.13  (mapsforge dev)

- Offline routing (GraphHopper)
- Drag route markers
- Export route (GPX)

The graph folder can be defined at menu 'Navigation' and route points are added with right click.
Atlas (like Cruiser) supports graphs with contraction hierarchies enabled or disabled.

I have created contraction hierarchical graphs for some regions.
http://www.talent.gr/public/graphs/
There are also some no contraction hierarchical graphs, having the suffix '_all'.

You can email me if you need more graphs to play with.

fzk

unread,
Jul 27, 2014, 4:00:11 PM7/27/14
to mapsfo...@googlegroups.com


I have played around with Cruiser Beta 1.3.16 (from 27.07.2014) and found a glitch concerning housenumbers artefacts:
- see attached screenshot (at the cross-hair cursor)

My wishlist for further versions:
- setting to remove the header (with App icon, App title, Map icon, ...)
- setting to remove the footer (with back, home and apps buttons)
- integrated help text for the main functions (including routing and to set it up)

Thank for the continuity of improvements ...

Klaus

Emux

unread,
Jul 28, 2014, 2:15:47 AM7/28/14
to mapsfo...@googlegroups.com
Thanks Klaus,
I'm answering at Cruiser's topic.

womisa

unread,
Jul 28, 2014, 6:21:19 AM7/28/14
to mapsfo...@googlegroups.com
Hi emux,

thanks for your good work!

Can you pleas generate graphs for "Baden-Württemberg /Germany" please.

Thanks
Achim

Am Sonntag, 27. Juli 2014 17:55:25 UTC+2 schrieb emux:
Atlas 1.0.15  (mapsforge master)
Atlas Beta 1.1.13  (mapsforge dev)
....


I have created contraction hierarchical graphs for some regions.
http://www.talent.gr/public/graphs/
There are also some no contraction hierarchical graphs, having the suffix '_all'.

You can email me if you need more graphs to play with.

womisa

unread,
Jul 28, 2014, 3:13:39 PM7/28/14
to mapsfo...@googlegroups.com
Hi emux,

i have found the Baden-Wuerttemberg graphs. Thanks for the generation!

Info: The exportet Route-File are not conform to gpx 1.1. (?the extension must have a own namespace?)

Is this output from Graphhopper or modified by Atlas?

I have write this to Peter Karich.

Thanks again
Achim

Emux

unread,
Jul 28, 2014, 3:17:16 PM7/28/14
to mapsfo...@googlegroups.com
The gpx route export is performed via GraphHopper, it's not modified by Atlas (or Cruiser).

Karussell

unread,
Jul 28, 2014, 6:07:40 PM7/28/14
to mapsfo...@googlegroups.com
Achim, thanks for reporting! Please see https://github.com/graphhopper/graphhopper/issues/241

Peter.
--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/53D6A1B6.4030403%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

womisa

unread,
Aug 5, 2014, 3:55:50 AM8/5/14
to mapsfo...@googlegroups.com
Hi Emux,

do you plan the integration of BRouter?

==> http://brouter.de/brouter/

Wish for the future: The ability to re-sort the VIAS


Best regards

Achim

Am Sonntag, 27. Juli 2014 17:55:25 UTC+2 schrieb emux:

Emux

unread,
Aug 5, 2014, 4:17:10 AM8/5/14
to mapsfo...@googlegroups.com
They are already in my schedule for both Cruiser and Atlas.

Wish for the future: The ability to re-sort the VIAS

Have you checked the last feature to drag the route markers?

womisa

unread,
Aug 5, 2014, 5:12:31 AM8/5/14
to mapsfo...@googlegroups.com
Hi

yes of course
, but I mean in a Listbox (Defaultname,Rename,
Sort alphabetically, insert,move,delete..)

or

that you can add a VIA point between two existing VIA-points and then move
the new VIA-point.

The possibility to delete a VIA-point

Greetings
Achim

Emux

unread,
Aug 5, 2014, 5:18:16 AM8/5/14
to mapsfo...@googlegroups.com
Yes a lot can be done to improve routing experience, they're certainly in the features to come.

womisa

unread,
Aug 5, 2014, 5:40:08 AM8/5/14
to mapsfo...@googlegroups.com
Hi thanks again for your response,

a nice to have feature would be the possibility to save the "ROUTING-File" (Departure,Destination,all VIA-points as GPX) and load this later again. I mean not the "RESULT" Exported Route.

Greetings
 Achim

womisa

unread,
Aug 24, 2014, 2:01:27 PM8/24/14
to mapsfo...@googlegroups.com
Hi Emux,

i have downloded your AtlasTool and the Graphhopper Graphs fo Baden-Württemberb-all. This work very well.

I have my own tool with graphhopper with my own graphs. How can i use this graphs with your tool?

I have a graphopper-0.4_Snapshot from 2014-08-03 and enerate the graphs with

....
        instance = new GraphHopper().forDesktop().setMemoryMapped().setEncodingManager(new EncodingManager("CAR,FOOT,BIKE")).disableCHShortcuts().
        setGraphHopperLocation(ghLoc).setOSMFile(testOsm);
        instance.setElevationProvider(srtm).setElevation(true);
        instance.importOrLoad();
.....

I select my  graph in your tool, but with error "You need select a graph befor routing "

Whats wrong (DirectorieName)?

Thanks for Atlas
Achim

Emux

unread,
Aug 24, 2014, 3:14:38 PM8/24/14
to mapsfo...@googlegroups.com
In Atlas you need to select the folder where the GraphHopper routing data exist.
e.g. the 'baden-wuerttemberg-gh_all' folder.

Are you creating graphs with elevation data?

womisa

unread,
Aug 24, 2014, 4:17:48 PM8/24/14
to mapsfo...@googlegroups.com


Am Sonntag, 24. August 2014 21:14:38 UTC+2 schrieb Emux:
In Atlas you need to select the folder where the GraphHopper routing data exist.
e.g. the 'baden-wuerttemberg-gh_all' folder.

yes, I do this, but with no success. The graphs works in my application. The size in the graph dir from "geometry and nodes" are different.

Are you creating graphs with elevation data?
 
yes. I use the elevations interface for a life display under the cursor to show elevation (and lat lon)  to find a optimal viapoint for me......

I create 3 RouteAlternativen with Brouter an 1 with Graphhopper....

Thanks
Achim
MyMapViewer.jpg

Emux

unread,
Aug 25, 2014, 3:40:53 AM8/25/14
to mapsfo...@googlegroups.com
GraphHopper's default settings is with elevation disabled.
I have not enabled elevation at reader, so maybe that causes the fail at graph read.

Can you provide the java stack trace (if they are any GraphHopper exceptions) or even better a graph with elevation data, that would help a lot.

womisa

unread,
Aug 25, 2014, 7:18:27 AM8/25/14
to mapsfo...@googlegroups.com


How can i get a stack trace? No error, but the message box with ""You need select a graph befor routing " cames up

I can not upload my graph without error to my account (~100 MB) ...sorry

but you can create this simply:

...
        testOsm = System.getProperty("user.dir") + "/../WMSData/graphhopper/resources/baden-wuerttemberg-latest.osm.pbf";

....
        instance = new GraphHopper().forDesktop().
setMemoryMapped().setEncodingManager(new EncodingManager("CAR,FOOT,BIKE")).disableCHShortcuts().
        setGraphHopperLocation(ghLoc).setOSMFile(testOsm);
        instance.setElevationProvider(srtm).setElevation(true);
        instance.importOrLoad();
.....

Greetings
Achim

Emux

unread,
Aug 25, 2014, 7:49:30 AM8/25/14
to mapsfo...@googlegroups.com
In order to see the stack trace you can run Atlas jar via console with:
java -jar Atlas.jar

womisa

unread,
Aug 25, 2014, 8:26:05 AM8/25/14
to mapsfo...@googlegroups.com
Hi

thanks. Forget it, i use your graph files and my own separately. Maybe that is compatible in the future....

Stacktrace comes up at newstart after configure the graph dir in the previrous session. No output at routing....MessageBox comes up:


D:\VirtualBox\Portable-VirtualBox\shares\Downloads\GPS\Mapsforge\Atlas>java -jar
 Atlas-Beta-1.1.14.jar
Aug 25, 2014 2:14:40 PM gr.talent.d.k a
SCHWERWIEGEND: Configured dimension (3) is not equal to dimension of loaded grap
h (2)
java.lang.IllegalStateException: Configured dimension (3) is not equal to dimens
ion of loaded graph (2)
        at com.graphhopper.storage.GraphHopperStorage.b_(SourceFile:1398)
        at com.graphhopper.GraphHopper.b(SourceFile:723)
        at gr.talent.d.k.a(SourceFile:116)
        at gr.talent.d.e.a(SourceFile:82)
        at gr.talent.b.l.run(SourceFile:105)
        at java.lang.Thread.run(Unknown Source)

Thanks
Achim

Emux

unread,
Aug 25, 2014, 8:30:57 AM8/25/14
to mapsfo...@googlegroups.com
Thanks for the feedback.

The stack trace shows that indeed the issue arises from the fact that the loaded graph has elevation data (3 dimensions) and the reader is configured with elevation off (2 dimensions).

I'll handle it in future versions of Atlas / Cruiser.

Emux

unread,
Aug 29, 2014, 7:16:09 AM8/29/14
to mapsfo...@googlegroups.com
Atlas v1.0.17 (mapsforge master)
Atlas Beta v1.1.15 (mapsforge dev)

- Support for routing graphs with elevation data (bike2),  like with contraction hierarchies.
I have updated the graphs, '_all' (car, bike, foot) include elevation data for the 'bike' travel type.

- Variable text size of vector maps (Ctrl+Shift+T)
- Adjust scale of the map display

From now on the new versions of Atlas will be announced in its forum.
Major features related to mapsforge can be found here too.
http://groups.google.com/group/atlas-app

womisa

unread,
Aug 31, 2014, 4:53:04 AM8/31/14
to mapsfo...@googlegroups.com
Now it also works with my own graph. Thanks for your great work!

What Elevation provider you use SRTMProvider or CGIARProvider?

Can you show the code for graph genaration and routing?


Thanks
Achim

Emux

unread,
Aug 31, 2014, 9:01:23 AM8/31/14
to mapsfo...@googlegroups.com
What Elevation provider you use SRTMProvider or CGIARProvider?

I tried both, currently with cgiar as it's appears more complete than srtm.


Can you show the code for graph genaration and routing?

The generation can be done without touching code.
If you don't want to use the official graphhopper.sh check line 235 where the graph creation is done.
You need to call com.graphhopper.GraphHopper class with arguments the input config file, the input osm file and the target graph folder.

- The routing is already described in Peter's instructions.
There is also the android sample with a very good life cycle of all the actions.

(For further discussion about this, it's better to move to GraphHopper or Atlas forum)

Emux

unread,
Mar 4, 2015, 4:09:16 AM3/4/15
to
I implemented a new major feature in Atlas:
 
- Graphs creation
 
Making lives of everyone who like GraphHopper easier :)
 
You can read the details in Atlas forum here:
https://groups.google.com/forum/#!topic/atlas-app/KK8bUijRB1w

womisa

unread,
Mar 4, 2015, 7:24:34 AM3/4/15
to mapsfo...@googlegroups.com
Hi Emux,

thanks for your new versions!

Can you please publish a minimalistic (Demo-Swing)-Version of Atlas (Source) or extent the SwingMapViewer  that allows to switch Mapsources, Maps and Themes as demo?

Best regards
Achim


Emux

unread,
Mar 4, 2015, 7:40:29 AM3/4/15
to mapsfo...@googlegroups.com
The full range of Mapsforge usage is hosted in Android Samples app with the various examples.

SwingMapViewer is just another Sample i.e. demonstrating that Mapsforge can work in Java.

Nevertheless I have in mind to improve SwingMapViewer.

Reply all
Reply to author
Forward
0 new messages