GIScience / openrouteservice

🌍 The open source route planner api with plenty of features.
https://openrouteservice.org
GNU General Public License v3.0
1.46k stars 399 forks source link

Elevation provider for CGIAR and MULTI offline #1866

Open patduckless opened 3 weeks ago

patduckless commented 3 weeks ago

Is there an existing issue for this?

Problem description

The URL for CGIAR (https://srtm.csi.cgiar.org/wp-content/uploads/files/srtm_5x5/TIFF/) is offline. If the elevation provider CGIAR or MULTI is configured in the config ORS will throw an error: Failed to either read or execute the ors configuration and its parameters: java.lang.RuntimeException: Couldn't process file /home/ors/files/osm_file.pbf, error: java.net.SocketTimeoutException: Connect timed out

Proposed solution

Change the URL to a known good for CGIAR and MULTI.

Additional context

This occoured when running the v8.0.0 and v8.2.0 versions of the docker image.

Forum Topic Link

No response

koebi commented 3 weeks ago

Hey, thanks for noticing :) Just FYI - you can disable elevation with elevation: false if you don't necessarily need it to be able to use ors.

alex-mitrani commented 3 weeks ago

Hey, thanks for noticing :) Just FYI - you can disable elevation with elevation: false if you don't necessarily need it to be able to use ors.

Hi, I have the same problem. This is helpful, but I'm not completely sure where the elevation: false line needs to go... is it the one under profile_default in the ors-config.yml file?

profile_default:
  enabled: true
  elevation: false

Thanks again.

patduckless commented 3 weeks ago

Yes that's the one.

You can also change the elevation provider from multi to STRM.

engine:
  elevation:
    provider: strm