Skip to main content

Automatically generate a vector tile cache for a table in postgreSQL.

Project description

postgresVectorTileGenerator

A python package to automatically generate a cache of vector tiles between two zoom levels and a bounding box for a table in postgreSQL.

Install

pip install postgresVectorTileGenerator

How to use

import os
from postgresVectorTileGenerator import generator

cache_location = f"{os.getcwd()}/cache"

tileGeneration = generator.GenerateTiles(cache_location, "localhost", 5432, "postgres", "postgres", "data", "states", 1, 5, [-118, 34, -84, 50])

tileGeneration.generate()

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

postgresVectorTileGenerator-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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