Skip to content

No input dataset specified #65

@sugizo

Description

@sugizo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions