Giter Site home page Giter Site logo

mapboxcomposer's Introduction

MapBoxComposer

This is the home of a small script that will allow you to compose and stick images from a MapBox created image.

Purpose

Initially the whole purpose of this was to fix a small problem I saw with a website. The awesome people at Tele Geography created a interactive version of their [Submarine Cable Map] (http://www.telegeography.com/telecom-maps/submarine-cable-map/index.html). The only problem was that it was extremely slow to load tiles when zoomed in at any level. After countless minutes of frustration I decided to try and reverse engineer the whole thing to download the images and compose them myself for fast browsing. The result is this set of scripts that you see here.

Future

In the future the plan is to expand this to compose any interactive map or image that uses the MapBox.

This is a work in progress...

Files Purpose

DownloadTiles.py

Generates a Makefile that will use wget to download the tiles using the original folder structure.

Makefile

Downloads all the tiles based on the instructions set in DownloadTiles.py

The whole purpose of this is to speed up the process and make it more realistic to the server just in case. Additionally its extremely fast to do so in parralel using the -j flags.

FixFilenames.py

When using any * completion the shell will detect 2 as being larger than 10, because its a string comparison. Since the server gives me the files as 1 and not 01, this script fixes this issue.

StichFolder.py

This script will run through each folder and do the vertical stiching required to join all the images.

TODO: As soon as all the vertical stiching is done then do the horizontal stiching.
TODO: Since each folder is completely independent from each other and the whole process takes long then we should turn it into a Makefile and use the -j flag or make it parallel in some other way.

mapboxcomposer's People

Contributors

masterkoppa avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

lanrat

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.