Convert a vector tile to a png.
Project description
mvtToPng
A python package to convert a vector tile to a png.
Install
pip install mvtToPng
How to use
import os
from mvtToPng import converter
DIR_PATH = os.path.dirname(os.path.realpath(__file__))
FILE_PATH = os.path.join(DIR_PATH, "states_3_2_3.pbf")
DOWNLOAD_LOCATION = f"{os.getcwd()}/downloads"
with open(FILE_PATH, 'rb') as file:
vector_data = file.read()
converter.Converter(
vector_tile_in_bytes=vector_data,
z=3,
y=2,
x=3,
download_path=DOWNLOAD_LOCATION,
file_name="states"
).convert()
Example Image:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mvttopng-1.0.7.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mvttopng-1.0.7.tar.gz.
File metadata
- Download URL: mvttopng-1.0.7.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cddc52668e4b28e618eec2b6a4f0582f92af7fe259796d01267e624ba21646c
|
|
| MD5 |
25fe9e574443de250c1f64c7411f28c5
|
|
| BLAKE2b-256 |
b2892222cda9fee2c720337f8ad018535f6c9ae84e44c6a56ea9ce75606c0445
|
File details
Details for the file mvtToPng-1.0.7-py3-none-any.whl.
File metadata
- Download URL: mvtToPng-1.0.7-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72afad0ce95bb430a652ab66836a045ac826c983f0f83191020b4144fb4f3e48
|
|
| MD5 |
c674e89d54dfb16a8dfff9af66f35e7b
|
|
| BLAKE2b-256 |
b39d406badbcd0f6d22e4d6a679ebd220450c547d0a9c4b7bf23abf95c059341
|