Skip to main content

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.4

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(
    zoom_level=18,
)

tile_url = "https://tile.openstreetmap.jp/{z}/{x}/{y}.png"
to.set_tile_list()
to.download_all_tiles(tile_url)

test

$ pytest -qs tests

development

setup

$ poetry config virtualenvs.in-project true
$ pyenv global 3.9 # Version 3.8 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.6.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tile_operator-0.0.6-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file tile_operator-0.0.6.tar.gz.

File metadata

  • Download URL: tile_operator-0.0.6.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.12 Darwin/21.6.0

File hashes

Hashes for tile_operator-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0d27a4290239d63b8aabfcfc297545c5a0eae99ef9da874cfeb7e49d469d46e7
MD5 28658b64117106a882856278443affe9
BLAKE2b-256 d1e8d3400e0c20fa4eb586803d6d917737ce5bd4d662984899ffa05b64f0bc1c

See more details on using hashes here.

File details

Details for the file tile_operator-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: tile_operator-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.12 Darwin/21.6.0

File hashes

Hashes for tile_operator-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 94cde3aca1c9bca7226fe8136b29124ef643287f6ec447f6ea1d7ba349a9efc3
MD5 1b0135bd1e421e1b521b193136af1660
BLAKE2b-256 e153cb5f4951b0099d4770f55e77e0e678a0e10dc79122f12538cc4a6491059c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page