Giter VIP home page Giter VIP logo

tiles-to-tiff's Introduction

ℹī¸ If you came here from the original tutorial you will find the corresponding source code in the v1 branch: https://github.com/jimutt/tiles-to-tiff/tree/v1

The master branch has been updated with a small additional to offer a simple CLI.

tiles-to-tiff

Python script for converting XYZ raster tiles for slippy maps to a georeferenced TIFF image.

Prerequisites:

  • Python & available GDAL installation

Usage:

tiles_to_tiff {tile_source} {lng_min} {lat_min} {lng_max} {lat_max} -o {output_directory} -z {zoom level}

Create georeferenced TIFF from online tileserver:

python tiles_to_tiff https://tileserver-url.com/{z}/{x}/{y}.png 21.49147 65.31016 21.5 65.31688 -o output -z 17

Use local tile source:

python tiles_to_tiff file:///Users/Bob/local-directory 21.49147 65.31016 21.5 65.31688 -o output -z 17

CLI arguments:

  • lng_min - Min longitude of bounding box
  • lat_min - Min latitude of bounding box
  • lng_max - Max longitude of bounding box
  • lat_max - Max latitude of bounding box
  • -z, --zoom - Tilesource zoom level, default 14
  • -o, --output - Output directory, required

tiles-to-tiff's People

Contributors

cj-malone avatar jimutt avatar michikommader 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.