Graphs creation

554 views
Skip to first unread message

Emux

unread,
Mar 4, 2015, 4:00:44 AM3/4/15
to atla...@googlegroups.com
A major new feature in Atlas is the creation of GraphHopper graphs.
 
Besides opening a ready graph folder to use in routing...
 
Now you can also select an OSM file (.osm or .pbf or compressed), e.g. from Geofabrik, to build a graph from it.
In that case you need to choose also a target empty folder, where the graph build process will take place.
 
The graph building could take some time and is memory intensive.
You should probably run the Atlas jar by allocating some memory, via the known Java command line options (i.e. -Xmx).
 
After the build, the graph is loaded automatically in Atlas.
You can also copy it to Android and use it with Cruiser.
 
The default graph build options are (car, bike, foot) with contraction hierarchies off.
 
There is a graph.properties file included to be able to change them easily.
If graph.properties is missing then the default settings are used.

Laura Barroso

unread,
Mar 4, 2015, 7:53:22 AM3/4/15
to atla...@googlegroups.com
Tested it just now. Really really nice... Thanks and Congrats!

El miércoles, 4 de marzo de 2015, 4:00:44 (UTC-5), Emux escribió:
A new feature in Atlas is the creation of GraphHopper graphs.
 
As always you can select a ready graph folder to use in routing.
 
Now you can also select an OSM file (.osm or .pbf or compressed), e.g. from Geofabrik.
In that case you need to choose also a target empty graph folder, where the build process will take place.
 
The graph building could take some time and is memory intensive.
You should probably run the jar by allocating some memory, via the known Java command line options (i.e. -Xmx).
 
After the build the graph is loaded automatically in Atlas.

womisa

unread,
Mar 4, 2015, 7:55:49 AM3/4/15
to atla...@googlegroups.com
Hi Emux,

thanks for te new version!

I can not create a graph. What is wrong?

Can you please show a code Snippet how to generate the graph?

Best regards Achim
graph_generation_error.png

Emux

unread,
Mar 4, 2015, 8:27:52 AM3/4/15
to wms...@googlemail.com
There was a bug in GraphHopper in rare situations.
I have seen it too trying to build a graph for that region and have reported it.

That was just fixed and will be integrated in next version of Atlas (will be soon).

For the time you can alter the graph.properties and choose e.g. only car
That way the graph build for that region will complete successfully.

For generating a graph you can check GraphHopper wiki pages (see here).
It describes how to build a graph via code with contraction hierarchies on / off (and perform routing).

--
Emux
Cruiser - Atlas

Emux

unread,
Mar 4, 2015, 2:50:08 PM3/4/15
to womisa, atla...@googlegroups.com
I published new versions of Atlas which include updated GraphHopper with the aforementioned fix.

Emux

unread,
Apr 23, 2015, 9:50:41 AM4/23/15
to atla...@googlegroups.com
(Hint for faster graph creation)

In order to use RAM instead of HD during graph creation, modify the graph.properties file.

Change line:
graph.dataaccess=MMAP
with:
graph.dataaccess=RAM_STORE

John Campbell

unread,
Apr 27, 2015, 4:37:14 AM4/27/15
to atla...@googlegroups.com
Following Emux's tips, I had to run Atlas from a Windows Command prompt window with extra memory allocated:
java -Xmx1024M -jar Atlas.jar
I got a a warning message and an error message which Emux told me could be ignored, but the process worked fairly quickly for producing a graph of Great Britain. Without the extra memory, the process never completed.


On Wednesday, 4 March 2015 09:00:44 UTC, Emux wrote:
The graph building could take some time and is memory intensive.
You should probably run the jar by allocating some memory, via the known Java command line options (i.e. -Xmx).
 

Emux

unread,
Apr 27, 2015, 4:43:41 AM4/27/15
to John Campbell, atla...@googlegroups.com
On 27/04/2015 11:37 πμ, John Campbell wrote:
I got a a warning message and an error message which Emux told me could be ignored

Those messages are coming from GraphHopper and are harmless for graphs creation and use.

Emux

unread,
Sep 30, 2015, 2:20:53 PM9/30/15
to atla...@googlegroups.com
Atlas (currently Beta) includes a new feature for GraphHopper graph creation:

Write way names in the preferred language, see graph.properties.

- If no preferred language is specified, only the default language with no tag will be imported.
- If a language is specified, it will be imported if its tag is found, otherwise fall back to default language.

BTW the warning messages were fixed.

--
Emux

Emux

unread,
Nov 2, 2015, 8:17:02 AM11/2/15
to atla...@googlegroups.com
Atlas also supports GraphHopper graphs creation with preferred language via graph.properties configuration file.

--
Emux

John Campbell

unread,
Dec 11, 2015, 4:47:05 AM12/11/15
to Atlas
I have simplified the process (for me) by creating a .bat file in the same directory as Atlas with one line:
java -Xmx1024M -jar Atlas-Beta.jar
which runs Atlas-Beta with the extra memory allocated and allows me to construct the graph.



On Wednesday, 4 March 2015 09:00:44 UTC, Emux wrote:

Emux

unread,
Dec 11, 2015, 4:59:45 AM12/11/15
to John Campbell, Atlas
Thanks for the hint to the Atlas users!

Maybe I should put 'bat' & 'sh' in next versions to make their life easier. :)

--
Emux

Emux

unread,
Dec 13, 2015, 9:07:10 AM12/13/15
to John Campbell, Atlas
New released versions of Atlas integrate in their 'exe' the -Xmx1024M option.

I also included 'bat' and 'sh' files with that, for everybody's convenience.

--
Emux
Reply all
Reply to author
Forward
0 new messages