Skip to main content

Vector Tiles Utilities

Project description

VTiles - Vector Tiles Utilities

Repository Renamed

Note: This repository has been renamed from vtiles to vtiles. Please update your references accordingly.

Installation:

  • Using pip install (Windows/ Linux):

    pip install vtiles
    
  • Show information of installed vtiles:

    pip show vtiles
    
  • Install the latest vertion of vtiles:

    pip install vtiles --upgrade
    
  • Visit vtiles on PyPI

Usage:

mbtilesinfo:

  • Display MBTiles metadata info:
    > mbtilesinfo <file_path>
    
    Ex: > mbtilesinfo tiles.mbtiles

mbtiles2folder:

  • Convert MBTiles file to folder: (support raster MBTiles (.png, .jpg, .webp) and vector MBTiles (.pbf))

    > mbtiles2folder -i <file_name.mbtiles> -o [output_folder (optional)] -tms [TMS scheme (optional 0 or 1, default is 0)]
    

    Ex: > mbtiles2folder -i tiles.mbtiles -o tiles_folder -tms 0

    Without -o parameter: output_folder has the same name with MBTiles file name at current directory

folder2mbtiles:

  • Convert a tiles folder to MBTiles file: (support raster tile (.png, .jpg, .webp) and vector tile (.pbf))

    > folder2mbtiles -i <input_folder> -o [file_name.mbtiles (optional)] -tms [TMS scheme (optional 0 or 1, default is 0)]
    

    Ex: > folder2mbtiles -i tiles_folder -o tiles.mbtiles -tms 0

    Without -o parameter: file_name.mbtiles has the same name with input_folder name at current directory

geoson2mbtiles:

  • Convert geojson file to mbtiles (python wrapper for tippecanoe in Linux)
    > geojson2mbtiles -i <input files> -z <maxzoom> -o <output> -t <tippecanoe path> --extra-args <drop-densest-as-needed or coalesce-densest-as-needed or extend-zooms-if-still-dropping>
    
    Ex: > geojson2mbtiles -i state.geojson district.geojson -z9 -o state_district.mbtiles -t /usr/local/bin/ --extra-args coalesce-densest-as-needed

folder2s3:

  • Uplpad a vector/ raster tiles folder to Amazon S3 Bucket:

    > folder2s3 -i <input_folder>  -format <'pbf' or 'png' or 'jpg' or 'jpeg' or 'webp'>
    

    Ex: > folder2s3 -i vectortiles_folder -format pbf

    Input S3 parameters:

      > S3 Bucket name: <Your S3 Bucket name (required)>
      > S3 Prefix: [Your S3 prefix (Optional. Press Enter to upload to the bucket root folder)]
      > AWS Access Key ID: <Your_Access_Key_ID (required)>
      > AWS Secret Access Key: <Your_Secrect_Access_Key (required)>
      > AWS Region: <AWS region (Optional. Press Enter to choose default region)>
    

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

vtiles-1.0.0.tar.gz (95.9 kB view details)

Uploaded Source

Built Distribution

vtiles-1.0.0-py3-none-any.whl (123.3 kB view details)

Uploaded Python 3

File details

Details for the file vtiles-1.0.0.tar.gz.

File metadata

  • Download URL: vtiles-1.0.0.tar.gz
  • Upload date:
  • Size: 95.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for vtiles-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0a0f7e0ee6cb4ac7d6625fe9da28839152a3eabf95d5b8237b06fdc0b00ef16b
MD5 4e1d806e6d01fb8f0ef9265616a8228b
BLAKE2b-256 58a0232979cbfced6b830032b220dcd4c50c515546f83a70c5a972799b6e4634

See more details on using hashes here.

File details

Details for the file vtiles-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vtiles-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 123.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for vtiles-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fc999fe9349676b3293d33de322defd90da0996bf86e2e5695737da2f482d08
MD5 78f7b07bf75ffc602df5ee9568f1b3e2
BLAKE2b-256 ab58a3e79b96fa09113fbec98dde939ee6cf30da08b89766d53f92c8ea6cc8a0

See more details on using hashes here.

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