Skip to content
NZ OSM server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
infra
scripts
.gitignore
LICENSE.txt
README.md

README.md

NZ OpenStreetMap Server

This project contains the automated scripts to set up a OSM server for New Zealand.

Datasets

The data being used comes from GeoFabrik, and is loaded periodically in the server, using a PostgreSQL database.

infra/roles/osm/tasks/main.yml contains the URL of the dataset, in case you would like to try different datasets.

Infrastructure

The infrastructure is comprised of:

  • a Postgres database
  • PostGIS extension loaded in Postgres
  • mapserver
  • imposm
  • nginx

This project includes an Ansible playbook with automated instructions to set up the environment. The playbook works for Vagrant, but it can also be used locally or to set up a server via SSH.

In order to install the infrastructure you will need:

  • Vagrant (and VMWare or VirtualBox), or Docker, a Linux computer or SSH access to a server
  • Ansible

Testing with QGIS

If you are running the Vagrant box, create a new WMS server, with any name, and with the following URL: http://192.168.100.100/mapserv?map=/opt/basemaps/osm-google.map. You can replace the IP address by the one of your real server too.

Testing with OpenLayers

http://192.168.100.100/?mode=browse&template=openlayers&layers=all&map=/opt/basemaps/osm-google.map http://192.168.100.100/?mode=browse&template=openlayers&layers=all&map=/opt/basemaps/osm-bing.map http://192.168.100.100/?mode=browse&template=openlayers&layers=all&map=/opt/basemaps/osm-michelin.map

License

Licensed under the MIT License. See LICENSE.txt.

You can’t perform that action at this time.