mapbox / mapbox/rio-mbtiles

MBtiles command not found

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
137
Forks
36
PR merge metrics
No merged PRs in 30d

Description

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 )

Contributor guide

Open the contributing guide

Research direction

Start with the reported `rio mbtiles` command and the installed `rio-mbtiles` package in the Python 3.8.13 environment, comparing the available Rasterio CLI commands with the plugin's documented entry point. Done means identifying why `mbtiles` is unavailable after installation and documenting or correcting a supported way to generate MBTiles, including whether an in-Python entry point exists.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, sqlite
Domain
cli, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.