Code Monkey home page Code Monkey logo

gdal2tiles-leaflet's Introduction

Docker image for gdal2tiles-leaflet

What is gdal2tiles-leaflet?

gdal2tiles-leaflet is developed by Commenthol See https://github.com/commenthol/gdal2tiles-leaflet

It generates raster image tiles from a given image for the use with leaflet.

This is a modified version of gdal2tiles.py which adds support for raster images as plain 2D maps in leafletjs. It adds the option -l or --leaflet to generate the resulting images with the reference point [0,0] in the upper-left (North-West) corner, opposed to the standard behaviour for TMS tiles using the lower-left (South-East) corner.

Together with the small leafletjs plugin leaflet-rastercoords you'll be able to add markers at the correct position using the (x, y) coordinates of the full-size image.

This docker installs gdal2tiles-leaflet in a docker container so you can use docker to run the gdal2tiles-leaflet command.

How to run as a docker command?

To run the docker gdal2tiles-leaflet command, run this command in the folder with your image. It links the current working directory to a folder called data in the docker container. Then run:

docker run --rm -v `pwd`:/data niene/gdal2tiles-leaflet -l -p raster -z 0-5 -w none /data/<image> /data/<tilesdir> 

The --rm flag removes the docker container and its volume after it is finished executing.

Doccumentation from gdal2tiles-leaflet from Commenthol

See: https://github.com/commenthol/gdal2tiles-leaflet

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the respective license. You are also implicitly verifying that all code is your original work or correctly attributed with the source of its origin and licence.

License

Modifications and samples are MIT licensed.

gdal2tiles.py: (MIT licensed)

  • Copyright (c) 2008, Klokan Petr Pridal
  • Copyright (c) 2010-2013, Even Rouault

References

gdal2tiles-leaflet's People

Contributors

commenthol avatar nieneb avatar guvener avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar William G. Wilkins Jr avatar  avatar  avatar

Forkers

mohitsahunitrr

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.