Giter VIP home page Giter VIP logo

mbtiles_util's Introduction

Vector Tiles Utilities

Repository Renamed

Note: This repository has been renamed from mbtiles-util to tiles-util. Please update your references accordingly.

Installation:

  • Using pip install (Windows/ Linux):

    pip install tiles-util
  • Show information of installed mbtiles-util:

    pip show tiles-util
  • Install the latest vertion of mbtiles-util:

    pip install tiles-util --upgrade
  • Visit tiles-util 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

vectorfolder2s3:

  • Uplpad a vector tiles folder to Amazon S3 Bucket:

    > vectorfolder2s3 <input_folder>   

    Ex: > vectorfolder2s3 vectortiles_folder

    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)>

rasterfolder2s3:

  • Uplpad a raster tiles folder to Amazon S3 Bucket:

    > rasterfolder2s3 <input_folder>   

    Ex: > rasterfolder2s3 rastertiles_folder

    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)>

mbtiles_util's People

Contributors

thangqd avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.