Tile Operation tool
Project description
tile-operator
usage
CLI
tile download
$ python to.py -v download https://tile.openstreetmap.jp/{z}/{x}/{y}.png tests/data/test.geojson 18
Tile Download
Options:
tile_url=https://tile.openstreetmap.jp/{z}/{x}/{y}.png
file_path=tests/data/test.geojson
zoom_level=18
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:05<00:00, 5.11it/s]
help
$ python to.py --help
Usage: to.py [OPTIONS] COMMAND [ARGS]...
Tile operator v0.0.1
Options:
--version Show the version and exit.
-v, --verbose verbose mode
--help Show this message and exit.
Commands:
operate Tile Operation
python
- install
$ pip install tile-operator
from tile_operator.operate import TileOperate
to = TileOperate(
tile_url="https://tile.openstreetmap.jp/{z}/{x}/{y}.png",
file_path="tests/data/test.geojson",
zoom_level=18,
)
to.set_tile_list()
to.download_all_tiles()
test
$ pytest -qs tests
development
setup
$ poetry config virtualenvs.in-project true
$ pyenv global 3.9 # Version 3.7 or higher will work, but 3.9 is recommended.
$ python -m venv .venv
$ source .venv/bin/activate
$ python -m pip install --upgrade pip
$ poetry install
$ poetry shell
publish
$ poetry build
$ poetry publish
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tile_operator-0.0.3.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for tile_operator-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6a43bc474ca7089d101846fce5a07e4574bb8746512eafe56645de32716fc84 |
|
MD5 | ca79a3cf729f0e4d6af4134c57182e06 |
|
BLAKE2b-256 | b6cf02e76cd2062fdc9046a31e6c94d61c28fae25d8a2b3657477be710ebe10c |