[GraphHopper] SRTM Service Connection Refused
Jan Torben Heuer
jan at komoot.de
Thu Dec 4 12:41:13 UTC 2014
for the underlying http library, the standard system properties for sockets can be used, too.
Jan
Am 04.12.2014 um 11:18 schrieb Peter <graphhopper at gmx.de>:
> Hi,
>
> you can change the elevation provider to use CGIAR or a different host for the SRTM data. See here the code and how to configure this (should be documented in config-example.properties too)
> https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/GraphHopper.java#L497
>
> You cannot configure currently the timeout, but you can increase it via configuring the downloader (setTimeout) in the ElevationProvider. Please create an issue/pull request to make this configurable.
>
> For the other thing you have to create an issue too I think.
>
> Regards,
> Peter
>
> On 04.12.2014 09:48, Andreas Fischer wrote:
>> Hi there,
>>
>> First i wanted to thank you guys for adding elevation data, big time!
>>
>> If i pull the current master branch of graphhopper i am not compatible with the maps from the maps repository anymore (different graph versions 7 and 9)! So i decided to build maps on my own.
>> Small maps are no problem (like Schwaben(GER)) but with bigger maps like Germany, i get the following exception while building with graphhopper.sh:
>>
>> Exception in thread "main" java.lang.RuntimeException: Couldn't process file /home/maps/OSMs/germany.osm, error: java.net.ConnectException: Connection refused
>> at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:321)
>> at com.graphhopper.reader.OSMReader.readGraph(OSMReader.java:152)
>> at com.graphhopper.GraphHopper.importData(GraphHopper.java:623)
>> at com.graphhopper.GraphHopper.process(GraphHopper.java:592)
>> at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:565)
>> at com.graphhopper.tools.Import.main(Import.java:16)
>> Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused
>> at com.graphhopper.reader.dem.SRTMProvider.getEle(SRTMProvider.java:302)
>> at com.graphhopper.reader.OSMReader.getElevation(OSMReader.java:562)
>> at com.graphhopper.reader.OSMReader.addNode(OSMReader.java:547)
>> at com.graphhopper.reader.OSMReader.processNode(OSMReader.java:522)
>> at com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:291)
>> ... 5 more
>> Caused by: java.net.ConnectException: Connection refused
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
>> at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
>> at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
>> at java.net.Socket.connect(Socket.java:579)
>> at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:308)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:326)
>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
>> at com.graphhopper.util.Downloader.fetch(Downloader.java:71)
>> at com.graphhopper.util.Downloader.downloadFile(Downloader.java:109)
>> at com.graphhopper.reader.dem.SRTMProvider.getEle(SRTMProvider.java:264)
>> ... 9 more
>>
>> My SRTM file cache folder contains the following files right after the exception occurred:
>> dem141189
>> dem143187
>> dem143188
>> dem143189
>> dem143190
>> N51E009hgt.zip
>> N53E008hgt.zip
>> NE53009hgt.zip
>> N53E010hgt.zip
>>
>> Is there some sort of a connection time out value which i can configure in the config.properties file?
>>
>> If i do not clear the elevation file cache and start the build process again i get something like this as an error message:
>> dem141189 is not a GraphHopper file!
>>
>> That are two issues in one post, but maybe they are related.
>>
>> Thanks in advance.
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20141204/9b97a6df/attachment.html>
More information about the GraphHopper
mailing list