Git Product home page Git Product logo

gdal2mb's Introduction

gdal2mb logo

Requirements

Usage

If GeoTIFFs are in projections other than EPSG:900913 (as many are), run gdalwarp first:

gdalwarp -t_srs EPSG:900913 raster.tiff raster_merc.tiff

Run python gdal2tiles.py -h for usage instructions.

Description

This is a variation of the gdal2tiles script that supports MapBox mbtiles SQLite tilesets as an output option. It has the same requirements as the original script - notably an installation of GDAL.

Usage of this command is

python gdal2tiles.py raster_merc.tiff raster_merc.mbtiles

The resultant .mbtiles file can be used in Maps on a Stick and elsewhere.

gdal2mb's People

Stargazers

Michael Swiller avatar Roman Hossain Shaon avatar Pankaj Kumar avatar  avatar  avatar  avatar  avatar Preston Ursini avatar Benjy Feen avatar  avatar @thinkinggis avatar Erdong avatar Jon Yu avatar Jin Yao avatar Ryan Atherton avatar BrandonX avatar wandergis avatar Denis avatar Kyros Koh avatar  avatar  avatar Nick Peihl avatar  avatar Tal Levy avatar univ avatar Jeff Zerger avatar Ben Sainsbury avatar JT5D avatar Doug Johnston avatar Jorge Arévalo avatar David Stuart avatar Peter Bartsch avatar Joe Larson avatar Coleman McCormick avatar Marc Puig avatar Prem Rose avatar David Huttleston avatar Tylor Sherman avatar Calvin Cheng avatar  avatar Andy Spohn avatar

Watchers

Tristen Brown avatar Alex Barth avatar Saman Bemel-Benrud avatar sudobangbang avatar Vitor George avatar Sajjad Anwar avatar Edward Keeble avatar Marc Farra avatar Olaf Veerman avatar James Cloos avatar Ricardo Duplos avatar Bobby Sudekum avatar Tarashish Mishra avatar Ruben L. Mendoza avatar Matthew Hanson avatar Ian Schuler avatar Alexandra Kirk avatar Jonas avatar Hanbyul Jo avatar Kevin Bullock avatar Jamey Smith avatar Ali Felski avatar Chuck Daniels avatar Heidi Jaafar avatar Edith Yesenia Quispe Pérez avatar Anna  avatar Drew Bollinger avatar Michael Suttles avatar Jotham Apaloo avatar Soumya Ranjan Mohanty avatar Danny  Katherin Aiquipa Pacheco avatar Richman avatar  avatar Kiri avatar Timothy Ellersiek avatar César A. avatar Jean-Francois Legendre avatar Karito Tenorio Palomino avatar Leo Thomas avatar Zhuangfang Yi 依庄防 avatar Lilly Thomas avatar Isayah Vidito avatar Pilar Gabriela Serrano Quispe avatar Necoline Hubner avatar Wei Ji avatar mattmatt.world  avatar  avatar

gdal2mb's Issues

gdal2tiles.py data input issue

Hello,

I'm trying to make a MBTILES file from the MOLA topography data of Mars. To avoid any confusion related to the smaller size of Mars I stripped the original data from it's projection information and assigned the WGS 1984 geographical projection to the data (the data extent is lon: -180 to 180, and lat: -88 to 88).
Next I made a mercator projected raster: gdalwarp -t_srs EPSG:900913 raster.tiff raster_merc.tiff
And then I ran your gdal2tiles.py script.

The problem is that I get the following 0/0/0 PNG: http://www.iivision.com/temp/mb2xyz.php?file=mola&code=0/0/0. The PHP in the URL streams the MBTILES file, see stamen/modestmaps-js#49.

When I open the raster_merc.tif data in QGIS I get a similar type of image (width and height not the same). Do you have any idea how I can get a mercator projected image which will perfectly fill the 0/0/0 PNG?

Thanks in advance,

Jelmer

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.