<div dir="ltr"><div><div><div>Ok Peter,<br><br></div>i reported the problem: "SRTM Service Connection Refused #292"<br></div>The CGIAR service worked fine. Thanks for the fast support!<br><br></div>Regards.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-04 11:18 GMT+01:00 Peter <span dir="ltr"><<a href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
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)<br>
<a href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/GraphHopper.java#L497" target="_blank">https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/GraphHopper.java#L497</a><br>
<br>
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.<br>
<br>
For the other thing you have to create an issue too I think.<br>
<br>
Regards,<br>
Peter<div><div class="h5"><br>
<br>
On 04.12.2014 09:48, Andreas Fischer wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi there,<br>
<br>
</div>
First i wanted to thank you guys
for adding elevation data, big
time!<br>
<br>
</div>
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.<br>
</div>
Small maps are no problem (like
Schwaben(GER)) but with bigger maps
like Germany, i get the following
exception while building with
graphhopper.sh:<br>
<br>
Exception in thread "main"
java.lang.RuntimeException: Couldn't
process file
/home/maps/OSMs/germany.osm, error:
java.net.ConnectException:
Connection refused<br>
at
com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:321)<br>
at
com.graphhopper.reader.OSMReader.readGraph(OSMReader.java:152)<br>
at
com.graphhopper.GraphHopper.importData(GraphHopper.java:623)<br>
at
com.graphhopper.GraphHopper.process(GraphHopper.java:592)<br>
at
com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:565)<br>
at
com.graphhopper.tools.Import.main(Import.java:16)<br>
Caused by:
java.lang.RuntimeException:
java.net.ConnectException:
Connection refused<br>
at
com.graphhopper.reader.dem.SRTMProvider.getEle(SRTMProvider.java:302)<br>
at
com.graphhopper.reader.OSMReader.getElevation(OSMReader.java:562)<br>
at
com.graphhopper.reader.OSMReader.addNode(OSMReader.java:547)<br>
at
com.graphhopper.reader.OSMReader.processNode(OSMReader.java:522)<br>
at
com.graphhopper.reader.OSMReader.writeOsm2Graph(OSMReader.java:291)<br>
... 5 more<br>
Caused by:
java.net.ConnectException:
Connection refused<br>
at
java.net.PlainSocketImpl.socketConnect(Native
Method)<br>
at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)<br>
at
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)<br>
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)<br>
at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)<br>
at
java.net.Socket.connect(Socket.java:579)<br>
at
sun.net.NetworkClient.doConnect(NetworkClient.java:175)<br>
at
sun.net.www.http.HttpClient.openServer(HttpClient.java:432)<br>
at
sun.net.www.http.HttpClient.openServer(HttpClient.java:527)<br>
at
sun.net.www.http.HttpClient.<init>(HttpClient.java:211)<br>
at
sun.net.www.http.HttpClient.New(HttpClient.java:308)<br>
at
sun.net.www.http.HttpClient.New(HttpClient.java:326)<br>
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)<br>
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)<br>
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)<br>
at
com.graphhopper.util.Downloader.fetch(Downloader.java:71)<br>
at
com.graphhopper.util.Downloader.downloadFile(Downloader.java:109)<br>
at
com.graphhopper.reader.dem.SRTMProvider.getEle(SRTMProvider.java:264)<br>
... 9 more<br>
<br>
</div>
My SRTM file cache folder contains the
following files right after the
exception occurred:<br>
</div>
dem141189<br>
</div>
dem143187<br>
</div>
dem143188<br>
</div>
dem143189<br>
</div>
dem143190<br>
</div>
N51E009hgt.zip<br>
</div>
N53E008hgt.zip<br>
</div>
NE53009hgt.zip<br>
</div>
N53E010hgt.zip<br>
<br>
</div>
<div>Is there some sort of a connection time out value
which i can configure in the config.properties file?<br>
</div>
<div><br>
</div>
If i do not clear the elevation file cache and start the
build process again i get something like this as an error
message:<br>
</div>
dem141189 is not a GraphHopper file!<br>
<br>
</div>
That are two issues in one post, but maybe they are related.<br>
<br>
</div>
Thanks in advance.<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
GraphHopper mailing list
<a href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>