Metadata-Version: 2.2
Name: mvtToPng
Version: 1.0.6
Summary: Convert a vector tile to a png.
Author-email: Michael Keller <michaelkeller03@gmail.com>
License: MIT
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Fiona==1.10.1
Requires-Dist: geopandas==1.0.1
Requires-Dist: mapbox-vector-tile==1.2.1
Requires-Dist: matplotlib==3.10.0
Requires-Dist: pandas==2.2.2
Requires-Dist: Pillow==11.1.0
Requires-Dist: Shapely==2.0.6
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)
