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

No input dataset specified #65

Open
sugizo opened this issue May 21, 2024 · 0 comments
Open

No input dataset specified #65

sugizo opened this issue May 21, 2024 · 0 comments

Comments

@sugizo
Copy link

sugizo commented May 21, 2024

env
ubuntu jammy x86_64
on microsoft-standard-WSL2

steps
pip install -U elevation

command
eio --product SRTM3 clip -o rome_srtm3.tif --bounds 12.35 41.8 12.65 42

result

make: Entering directory '/home/sugizo/.cache/elevation/SRTM3'
make: Nothing to be done for 'download'.
make: Leaving directory '/home/sugizo/.cache/elevation/SRTM3'
make: Entering directory '/home/sugizo/.cache/elevation/SRTM3'
gdalbuildvrt -q -overwrite SRTM3.vrt
ERROR 1: No input dataset specified.
Usage: gdalbuildvrt [-tileindex field_name]
                    [-resolution {highest|lowest|average|user}]
                    [-te xmin ymin xmax ymax] [-tr xres yres] [-tap]
                    [-separate] [-b band] [-sd subdataset]
                    [-allow_projection_difference] [-q]
                    [-addalpha] [-hidenodata]
                    [-srcnodata "value [value...]"] [-vrtnodata "value [value...]"]
                    [-ignore_srcmaskband]
                    [-a_srs srs_def]
                    [-r {nearest,bilinear,cubic,cubicspline,lanczos,average,mode}]
                    [-oo NAME=VALUE]*
                    [-input_file_list my_list.txt] [-overwrite] output.vrt [gdalfile]*

e.g.
  % gdalbuildvrt doq_index.vrt doq/*.tif
  % gdalbuildvrt -input_file_list my_list.txt doq_index.vrt

NOTES:
  o With -separate, each files goes into a separate band in the VRT band.
    Otherwise, the files are considered as tiles of a larger mosaic.
  o -b option selects a band to add into vrt.  Multiple bands can be listed.
    By default all bands are queried.
  o The default tile index field is 'location' unless otherwise specified by
    -tileindex.
  o In case the resolution of all input files is not the same, the -resolution
    flag enable the user to control the way the output resolution is computed.
    Average is the default.
  o Input files may be any valid GDAL dataset or a GDAL raster tile index.
  o For a GDAL raster tile index, all entries will be added to the VRT.
  o If one GDAL dataset is made of several subdatasets and has 0 raster bands,
    its datasets will be added to the VRT rather than the dataset itself.
    Single subdataset could be selected by its number using the -sd option.
  o By default, only datasets of same projection and band characteristics
    may be added to the VRT.
make: *** [Makefile:14: SRTM3.vrt] Error 1
make: Leaving directory '/home/sugizo/.cache/elevation/SRTM3'
Traceback (most recent call last):
  File "/home/sugizo/elevation/bin/eio", line 8, in <module>
    sys.exit(eio())
  File "/home/sugizo/elevation/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/sugizo/elevation/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/elevation/cli.py", line 63, in wrapper
    return wrapped(**kwargs)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/elevation/cli.py", line 107, in clip
    elevation.clip(bounds, **kwargs)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/elevation/datasource.py", line 216, in clip
    datasource_root = seed(bounds=bounds, **kwargs)
  File "/home/sugizo/elevation/lib/python3.10/site-packages/elevation/datasource.py", line 191, in seed
    util.check_call_make(datasource_root, targets=['all'])
  File "/home/sugizo/elevation/lib/python3.10/site-packages/elevation/util.py", line 88, in check_call_make
    subprocess.check_call(cmd, shell=True)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'make -C /home/sugizo/.cache/elevation/SRTM3 all ' returned non-zero exit status 2.

best regards

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

1 participant