[GraphHopper] Elevation Setup
Martin Malfertheiner
martin.malfertheiner at gmail.com
Mon Jun 1 09:57:45 UTC 2015
Hi Peter,
thanks for the help. Now it works :)
Martin
> Am 01.06.2015 um 11:17 schrieb Peter <graphhopper at gmx.de>:
>
> Hi Martin,
>
> this is due to the slow response time of the elevation data server.
>
> Please see
> https://github.com/graphhopper/graphhopper/issues/292 <https://github.com/graphhopper/graphhopper/issues/292>
>
> So you could temporarily improve the situation if you increase the current timeout of 10 seconds in the SRTMProvider:
> private Downloader downloader = new Downloader("GraphHopper SRTMReader").setTimeout(10000);
>
> Or also try another baseUrl like http://mirror.ufs.ac.za/datasets/SRTM3/ <http://mirror.ufs.ac.za/datasets/SRTM3/> or using cgiar instead of srtm.
>
> Kind Regards,
> Peter
>
> On 01.06.2015 11:10, Martin Malfertheiner wrote:
>> Hi Peter,
>>
>> yes I did use a virtual machine and I tried it with RAM_STORE, it still did not work. Something though changed, it loaded a bunch of srtm files, but I guess not all of them. So I tried it on my local machine (MacBook) and it had the same Problem.
>>
>> mbp-di-martin:graphhopper martinmalfertheiner$ ./graphhopper.sh web europe_italy.pbf
>> ## using java 1.6.0_65 (64bit) from
>> ## using existing osm file europe_italy.pbf
>> ./graphhopper.sh: line 82: mvn: command not found
>> ## existing jar found tools/target/graphhopper-tools-0.5-SNAPSHOT-jar-with-dependencies.jar
>> ## now web. JAVA_OPTS=-Xmx2000m -Xms2000m -server
>> 2015-06-01 11:04:40,286 [main] INFO com.graphhopper.GraphHopper - version 0.5|2015-05-28T07:55:15+0000 (4,12,3,2,2)
>> 2015-06-01 11:04:40,291 [main] INFO com.graphhopper.GraphHopper - graph LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, details:edges:0(0), nodes:0(0), name: /(0), geo:0(0), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308
>> 2015-06-01 11:04:40,300 [main] INFO com.graphhopper.GraphHopper - start creating graph from europe_italy.pbf
>> 2015-06-01 11:04:40,301 [main] INFO com.graphhopper.GraphHopper - using LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, memory:totalMB:1916, usedMB:30
>> 2015-06-01 11:05:37,607 [main] INFO com.graphhopper.reader.OSMReader - 50?000 (preprocess), osmWayMap:14?809 totalMB:1878, usedMB:1364
>> 2015-06-01 11:05:37,662 [main] INFO com.graphhopper.reader.OSMReader - 100?000 (preprocess), osmWayMap:24?907 totalMB:1878, usedMB:1497
>> 2015-06-01 11:05:37,710 [main] INFO com.graphhopper.reader.OSMReader - 150?000 (preprocess), osmWayMap:31?498 totalMB:1878, usedMB:1622
>> 2015-06-01 11:05:37,731 [main] INFO com.graphhopper.reader.OSMReader - creating graph. Found nodes (pillar+tower):29?773?397, totalMB:1878, usedMB:1656
>> 2015-06-01 11:05:37,740 [main] INFO com.graphhopper.reader.dem.SRTMProvider - SRTM Elevation Provider, from: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ <http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/>, to: /Users/martinmalfertheiner/fever/Server/Graphhopper/graphhopper/srtmprovider, as: RAM_STORE
>> Exception in thread "PBF Reader" java.lang.RuntimeException: Unable to read PBF file.
>> at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:53)
>> at java.lang.Thread.run(Thread.java:695)
>> Caused by: java.lang.RuntimeException: java.lang.InterruptedException
>> at com.graphhopper.reader.OSMInputFile.process(OSMInputFile.java:265)
>> at com.graphhopper.reader.pbf.PbfDecoder.sendResultsToSink(PbfDecoder.java:106)
>> at com.graphhopper.reader.pbf.PbfDecoder.processBlobs(PbfDecoder.java:171)
>> at com.graphhopper.reader.pbf.PbfDecoder.run(PbfDecoder.java:184)
>> at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:49)
>> ... 1 more
>> Caused by: java.lang.InterruptedException
>> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1961)
>> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1996)
>> at java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:306)
>> at com.graphhopper.reader.OSMInputFile.process(OSMInputFile.java:262)
>> ... 5 more
>> 01.06.2015 11:05:58 com.google.inject.internal.MessageProcessor visit
>> INFO: An exception was caught and reported. Message: java.net.ConnectException: Connection refused
>> java.lang.IllegalStateException: Couldn't load graph
>>
>> In the cache folder, I always get some files (sometimes more sometimes less):
>>
>> N43E011hgt.zip N45E006hgt.zip N45E008hgt.zip N46E008hgt.zip dem133191 dem135186 dem135188 dem136188
>>
>> Do you have any idea why this fails?
>>
>> All the best,
>>
>> Martin
>>
>>> Am 29.05.2015 um 21:17 schrieb Peter <graphhopper at gmx.de <mailto:graphhopper at gmx.de>>:
>>>
>>> Martin, are you using some virtual file system or something?
>>>
>>> Memory mapping could have a problem with this. Try
>>> graph.elevation.dataaccess=RAM_STORE
>>>
>>> (potentially remove /vagrant/graphhopper/srtmprovider before)
>>>
>>> Regards,
>>> Peter
>>>
>>> On 29.05.2015 21:07, Martin Malfertheiner wrote:
>>>> Hi Peter,
>>>>
>>>> thanks for the quick response. I removed the file and tried again, but with the same error:
>>>>
>>>> ./graphhopper.sh web europe_italy.pbf
>>>> ## using java 1.7.0_79 (64bit) from
>>>> ## using existing osm file europe_italy.pbf
>>>> ## existing jar found tools/target/graphhopper-tools-0.5-SNAPSHOT-jar-with-dependencies.jar
>>>> ## now web. JAVA_OPTS=-Xmx2000m -Xms2000m -server
>>>> 2015-05-29 18:59:56,824 [main] INFO com.graphhopper.GraphHopper - version 0.5|2015-05-28T07:55:15+0000 (4,12,3,2,2)
>>>> 2015-05-29 18:59:56,846 [main] INFO com.graphhopper.GraphHopper - graph LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, details:edges:0(0), nodes:0(0), name: /(0), geo:0(0), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308
>>>> 2015-05-29 18:59:56,870 [main] INFO com.graphhopper.GraphHopper - start creating graph from europe_italy.pbf
>>>> 2015-05-29 18:59:56,871 [main] INFO com.graphhopper.GraphHopper - using LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, memory:totalMB:1933, usedMB:32
>>>> 2015-05-29 19:02:30,454 [main] INFO com.graphhopper.reader.OSMReader - 50 000 (preprocess), osmWayMap:14 809 totalMB:1933, usedMB:1710
>>>> 2015-05-29 19:02:31,112 [main] INFO com.graphhopper.reader.OSMReader - 100 000 (preprocess), osmWayMap:24 907 totalMB:1933, usedMB:1452
>>>> 2015-05-29 19:02:31,400 [main] INFO com.graphhopper.reader.OSMReader - 150 000 (preprocess), osmWayMap:31 498 totalMB:1933, usedMB:1495
>>>> 2015-05-29 19:02:31,459 [main] INFO com.graphhopper.reader.OSMReader - creating graph. Found nodes (pillar+tower):29 773 397, totalMB:1933, usedMB:1495
>>>> 2015-05-29 19:02:31,554 [main] INFO com.graphhopper.reader.dem.SRTMProvider - SRTM Elevation Provider, from: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ <http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/>, to: /vagrant/graphhopper/srtmprovider, as: MMAP_STORE
>>>> Exception in thread "PBF Reader" java.lang.RuntimeException: Unable to read PBF file.
>>>> at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:53)
>>>> at java.lang.Thread.run(Thread.java:745)
>>>>
>>>> Regards,
>>>>
>>>> Martin
>>>>
>>>>> Am 29.05.2015 um 20:46 schrieb Peter <graphhopper at gmx.de <mailto:graphhopper at gmx.de>>:
>>>>>
>>>>> Hi Martin,
>>>>>
>>>>> would you mind to remove the file dem135186 in /vagrant/graphhopper/srtmprovider and try again?
>>>>>
>>>>> Regards,
>>>>> Peter
>>>>>
>>>>> On 29.05.2015 20:32, Martin Malfertheiner wrote:
>>>>>> Hi,
>>>>>>
>>>>>> I’m new to Graphhopper. Recently I tried to setup a graphhopper server locally. Everything worked like a charm with 2D routing, but then I tried to start the server with bike2 and elevation provider SRTM. I always get the same error:
>>>>>>
>>>>>> Config:
>>>>>> graph.flagEncoders=bike2
>>>>>> graph.elevation.provider=srtm
>>>>>> graph.elevation.cachedir=./srtmprovider/
>>>>>>
>>>>>> Run:
>>>>>> ./graphopper.sh web europe-italy.pbf
>>>>>>
>>>>>> ./graphhopper.sh web europe_italy.pbf
>>>>>> ## using java 1.7.0_79 (64bit) from
>>>>>> ## using existing osm file europe_italy.pbf
>>>>>> ## existing jar found tools/target/graphhopper-tools-0.5-SNAPSHOT-jar-with-dependencies.jar
>>>>>> ## now web. JAVA_OPTS=-Xmx2000m -Xms2000m -server
>>>>>> 2015-05-29 18:11:31,849 [main] INFO com.graphhopper.GraphHopper - version 0.5|2015-05-28T07:55:15+0000 (4,12,3,2,2)
>>>>>> 2015-05-29 18:11:31,868 [main] INFO com.graphhopper.GraphHopper - graph LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, details:edges:0(0), nodes:0(0), name: /(0), geo:0(0), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308
>>>>>> 2015-05-29 18:11:31,893 [main] INFO com.graphhopper.GraphHopper - start creating graph from europe_italy.pbf
>>>>>> 2015-05-29 18:11:31,894 [main] INFO com.graphhopper.GraphHopper - using LevelGraphStorage|bike2|RAM_STORE|3D|NoExt|,,,,, memory:totalMB:1933, usedMB:32
>>>>>> 2015-05-29 18:17:00,445 [main] INFO com.graphhopper.reader.OSMReader - 50 000 (preprocess), osmWayMap:14 809 totalMB:1933, usedMB:737
>>>>>> 2015-05-29 18:17:01,353 [main] INFO com.graphhopper.reader.OSMReader - 100 000 (preprocess), osmWayMap:24 907 totalMB:1933, usedMB:919
>>>>>> 2015-05-29 18:17:02,140 [main] INFO com.graphhopper.reader.OSMReader - 150 000 (preprocess), osmWayMap:31 498 totalMB:1933, usedMB:946
>>>>>> 2015-05-29 18:17:02,325 [main] INFO com.graphhopper.reader.OSMReader - creating graph. Found nodes (pillar+tower):29 773 397, totalMB:1933, usedMB:946
>>>>>> 2015-05-29 18:17:02,438 [main] INFO com.graphhopper.reader.dem.SRTMProvider - SRTM Elevation Provider, from: http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/ <http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/>, to: /vagrant/graphhopper/srtmprovider, as: MMAP_STORE
>>>>>> 2015-05-29 18:17:02,466 [main] WARN com.graphhopper.reader.dem.SRTMProvider - cannot load dem135186, error:Not a GraphHopper file! Expected 'GH' as file marker but was
>>>>>> Exception in thread "PBF Reader" java.lang.RuntimeException: Unable to read PBF file.
>>>>>> at com.graphhopper.reader.pbf.PbfReader.run(PbfReader.java:53)
>>>>>>
>>>>>> Am I missing out something?
>>>>>>
>>>>>> All the best,
>>>>>>
>>>>>> Martin
>>>>>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150601/262a0d83/attachment.html>
More information about the GraphHopper
mailing list