Metadata-Version: 2.1
Name: mvtToPng
Version: 0.0.1
Summary: Convert a vector tile to a png.
Home-page: https://github.com/mkeller3/mvtToPng
Author: Michael Keller
Author-email: michaelkeller03@gmail.com
License: GNU General Public License v3.0
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: Fiona (==1.8.22)
Requires-Dist: Pillow (==9.2.0)
Requires-Dist: Shapely (==1.8.5.post1)
Requires-Dist: attrs (==22.1.0)
Requires-Dist: certifi (==2022.9.24)
Requires-Dist: charset-normalizer (==2.1.1)
Requires-Dist: click-plugins (==1.1.1)
Requires-Dist: click (==8.1.3)
Requires-Dist: cligj (==0.7.2)
Requires-Dist: contourpy (==1.0.5)
Requires-Dist: cycler (==0.11.0)
Requires-Dist: exceptiongroup (==1.0.0)
Requires-Dist: fonttools (==4.38.0)
Requires-Dist: future (==0.18.2)
Requires-Dist: geopandas (==0.12.1)
Requires-Dist: idna (==3.4)
Requires-Dist: iniconfig (==1.1.1)
Requires-Dist: kiwisolver (==1.4.4)
Requires-Dist: mapbox-vector-tile (==1.2.1)
Requires-Dist: matplotlib (==3.6.1)
Requires-Dist: munch (==2.5.0)
Requires-Dist: numpy (==1.23.4)
Requires-Dist: packaging (==21.3)
Requires-Dist: pandas (==1.5.1)
Requires-Dist: pluggy (==1.0.0)
Requires-Dist: protobuf (==3.20.0)
Requires-Dist: pyclipper (==1.3.0.post3)
Requires-Dist: pyparsing (==3.0.9)
Requires-Dist: pyproj (==3.4.0)
Requires-Dist: python-dateutil (==2.8.2)
Requires-Dist: pytz (==2022.5)
Requires-Dist: six (==1.16.0)
Requires-Dist: tomli (==2.0.1)
Requires-Dist: urllib3 (==1.26.12)
Requires-Dist: vt2geojson (==0.2.1)

# mvtToPng

A python package to convert a vector tile to a png.

## Install
`pip install mvtToPng`

## How to use
```python
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:

![State](images/states.png)

