rio-mbtiles icon indicating copy to clipboard operation
rio-mbtiles copied to clipboard

MBtiles command not found

Open kanishk-aidash opened this issue 2 years ago • 1 comments

I am trying to generate mbtiles from geotiff using rio-mbtiles.

Although the installation (pip install rio-mbtiles) shows success and reinstallation says Requirement already satisfied, I am unable to run rio mbtiles command

When run rio mbtiles time GDAL_CACHEMAX=256 rio mbtiles input.tif -o ne.mbtiles --zoom-levels 1..5 -j 4 It errors out saying, No such command 'mbtiles'

Usage: rio [OPTIONS] COMMAND [ARGS]...

  Rasterio command line interface.

Options:
  -v, --verbose           Increase verbosity.
  -q, --quiet             Decrease verbosity.
  --aws-profile TEXT      Select a profile from the AWS credentials file
  --aws-no-sign-requests  Make requests anonymously
  --aws-requester-pays    Requester pays data transfer costs
  --version               Show the version and exit.
  --gdal-version
  --help                  Show this message and exit.

Commands:
  blocks     Write dataset blocks as GeoJSON features.
  bounds     Write bounding boxes to stdout as GeoJSON.
  calc       Raster data calculator.
  clip       Clip a raster to given bounds.
  convert    Copy and convert raster dataset.
  edit-info  Edit dataset metadata.
  env        Print information about the Rasterio environment.
  gcps       Print ground control points as GeoJSON.
  info       Print information about a data file.
  insp       Open a data file and start an interpreter.
  mask       Mask in raster using features.
  merge      Merge a stack of raster datasets.
  overview   Construct overviews in an existing dataset.
  rasterize  Rasterize features.
  rm         Delete a dataset.
  sample     Sample a dataset.
  shapes     Write shapes extracted from bands or masks.
  stack      Stack a number of bands into a multiband dataset.
  transform  Transform coordinates.
  warp       Warp a raster dataset.

System Details: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal

Python : python --version Python 3.8.13

Any help is appreciated.

Also, I am not able to figure out if there is a way to run this from inside python(except for subprocess / os.system to call the CLI )

kanishk-aidash avatar Jun 05 '22 09:06 kanishk-aidash

Do you have rio-mbtiles installed? Try running:

pip3 install rio-mbtiles

ovidiucp avatar Jan 29 '23 04:01 ovidiucp