<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">for the underlying http library, the standard system properties for sockets can be used, too.<div><br></div><div>Jan</div><div><br><div><div>Am 04.12.2014 um 11:18 schrieb Peter <<a href="mailto:graphhopper@gmx.de">graphhopper@gmx.de</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">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 class="moz-txt-link-freetext" href="https://github.com/graphhopper/graphhopper/blob/master/core/src/main/java/com/graphhopper/GraphHopper.java#L497">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<br>
      <br>
      On 04.12.2014 09:48, Andreas Fischer wrote:<br>
    </div>
    <blockquote cite="mid:CAL83n0_q6fUhz0_9ceU+xHzUUH9DZF9uOEqY=oFEtpzOEJb4DA@mail.gmail.com" type="cite">
      <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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </div>

_______________________________________________<br>GraphHopper mailing list<br><a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>https://lists.openstreetmap.org/listinfo/graphhopper<br></blockquote></div><br></div></body></html>