Skip to main content

Automatically generate a list of all possible tiles options between two zoom levels and a bounding box.

Project description

VectorTileGenerator

A python package to automatically generate a list of all possible z,x,y tiles options between two zoom levels and a bounding box.

Install

pip install VectorTileGenerator

How to use

from VectorTileGenerator import generator
import json

tileGeneration = generator.GenerateTiles(1, 3, [-118, 34, -84, 50])

# Demo of generating tiles
print(json.dumps(tileGeneration.generate(), indent=4))

{
    "1": [
        [
            1,
            0,
            0
        ]
    ],
    "2": [
        [
            2,
            0,
            1
        ],
        [
            2,
            1,
            1
        ]
    ],
    "3": [
        [
            3,
            1,
            2
        ],
        [
            3,
            1,
            3
        ],
        [
            3,
            2,
            2
        ],
        [
            3,
            2,
            3
        ]
    ]
}

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

VectorTileGenerator-0.0.6.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

VectorTileGenerator-0.0.6-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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