ajnisbet / opentopodata

Open alternative to the Google Elevation API!
https://www.opentopodata.org
MIT License
314 stars 68 forks source link

"Config Error: No dataset folder found at location 'data/etopo1/'" #43

Closed 8m0 closed 3 years ago

8m0 commented 3 years ago

Hello,

I am trying to make etopo1 following this tutorial ETOPO1, but I am getting this error: { "error": "Config Error: No dataset folder found at location 'data/etopo1/'", "status": "SERVER_ERROR" }

My system is Windows 10. I set it through docker.

tiff refactored by GDAL path: opentopodata/data/etopo1/ETOPO1.tiff

config.yaml:

# An example of a config.yaml file showing all possible options. If no
# config.yaml file exists, opentopodata will load example-config.yaml instead.

# 400 error will be thrown above this limit.
max_locations_per_request: 100

# CORS header. Should be None for no CORS, '*' for all domains, or a url with
# protocol, domain, and port ('https://api.example.com/'). Default is null.
access_control_allow_origin: null

datasets:
- name: etopo1
  path: data/etopo1/

# Example config for 90 metre SRTM.
# - name: srtm90m
#   path: data/srtm-90m-nasa-v3.0/
#   filename_epsg: 4326  # This is the default value.
#   filename_tile_size: 1  # This is the default value.
ajnisbet commented 3 years ago

Hi 8m0, that config file and path looks correct, so it's strange this would happen.

I don't have a way to test on windows unfortunately so it can be a little flakey.

Some things to check:

- name: test-dataset
  path: tests/data/datasets/test-etopo1-resampled-1deg/
Blackfishbox commented 3 years ago

That's how I got it to run under Windows using PowerShell: docker run --rm -it --volume "/C/path/to/opentopodata/data:/app/data:ro" -p 5000:5000 opentopodata sh -c "/usr/bin/supervisord -c /app/docker/supervisord.conf" Note the path beginning with / and not cotaining :

(asuming you have edited %(ENV_N_UWSGI_THREADS) in supervisord.conf, otherwise please refer to https://github.com/ajnisbet/opentopodata/issues/42)

8m0 commented 3 years ago
  • If so, make sure --volume C:/path/to/opentopodata/data in the command is replaced with the actual location on your windows machine.

That was the problem, thank you a lot.

ajnisbet commented 3 years ago

Good to know, I've improved the docs in https://github.com/ajnisbet/opentopodata/commit/21483605e84cf4d467fbc3f6aead39307f5b9299