Giter Site home page Giter Site logo

schaermu / vagrant-osm-tileserver Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 4.0 30 KB

A standalone OpenStreetMap Tileserver for Switzerland (based on Vagrant & VirtualBox)

ApacheConf 2.15% Python 9.21% CartoCSS 48.09% Shell 15.67% HTML 2.85% Ruby 22.02%

vagrant-osm-tileserver's Introduction

Standalone OpenStreetMap-Tileserver

This Vagrant Box's target is to provide a completely standalone, off-the-wire running map-server. The following components are being leveraged to provide this functionality:

  • Ubuntu 14.04
  • Apache 2 with mod_tile (mod_tile is compiled from latest master on provision)
  • renderd (compiled from latest master on provision)
  • Mapnik (currently locked on 2.2.x branch due to compat issues)
  • PostgreSQL 9.3
  • osm2pgsql (compiled from latest master on provision)

The maps are rendered using osm-bright, GIS data is imported from the Swiss OpenStreetMap Association (using the latest data for Switzerland, downloaded on provision). The setup is based on this article.

It is HIGHLY advised to setup the box on a fast SSD disk (due to the high I/O throughput required for the GIS-data import). The disk space required on the server is about 15 GB (depends on the amount of tiles that are rendered).

When changing the memory settings for the box, don't forget to adapt the cache-setting for the osm2pgsql call (L112 in vagrant\Vagrantfile). It should be half the value of the memory space allocated.

Usage

  1. Make sure you have the latest versions of both Vagrant and VirtualBox installed.
  2. Clone or download the repository.
  3. Open a shell/command line and cd to vagrant
  4. Run vagrant up
  5. Wait until provisioning is finished (depending on your internet connection/host performance, this can take up to several hours!).
  6. Fire up a browser and open http://localhost:8080/ to open a Leaflet interface connected to your new tileserver.

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.