Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can not use eio clip when target area is too big #45

Open
yuend1004 opened this issue Feb 18, 2021 · 2 comments
Open

I can not use eio clip when target area is too big #45

yuend1004 opened this issue Feb 18, 2021 · 2 comments

Comments

@yuend1004
Copy link

yuend1004 commented Feb 18, 2021

I found that eio clip causes error when target AOI is located in too many srtm grid. Do you happen to know how we can solve this?

`root@yuend:~/eio_test# eio clip -o srtm.tif --bounds 12.79 40.53 15.42 42.47

Traceback (most recent call last):
File "/usr/local/bin/eio", line 8, in
sys.exit(eio())
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/elevation/cli.py", line 59, in wrapper
return wrapped(**kwargs)
File "/usr/local/lib/python3.6/dist-packages/elevation/cli.py", line 93, in clip
elevation.clip(bounds, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/elevation/datasource.py", line 181, in clip
datasource_root = seed(bounds=bounds, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/elevation/datasource.py", line 150, in seed
"for how to bulk download tiles." % len(ensure_tiles_names))
RuntimeError: Too many tiles: 12. Please consult the providers' websites for how to bulk download tiles.`

@vivigb
Copy link

vivigb commented Nov 23, 2021

Did ya find a solution for this? Coz I am facing the same problem

@ngohikennyyue
Copy link

I tried to change the max_download_tiles number higher but no luck.
def seed(cache_dir=CACHE_DIR, product=DEFAULT_PRODUCT, bounds=None, max_download_tiles=9, **kwargs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants