Extension:SpatialWiki

Introduction
The SpatialWiki extension parses the wiki text after a page is saved and extracts a coded spatial reference and stores it in a standalone geospatial database. The spatial references can be displayed in wiki articles with click-able links to other spatially referenced content. This extension was originally developed for use in a talk at the 2011 FOSS4G Conference.

A tutorial that walks through setting up the back-end architecture including PostgreSQL/PostGIS, GeoServer, and OpenLayers is maintained in the AuSpatial Blog.

Installation
The installation notes below are generally for a Linux Ubuntu instance.

This extension can be used to simply display maps, but to make full-use of the capabilities you have to do a fair bit of back-end work to setup a spatial database to store the spatial references, along with a map server to serve the points to the wiki pages. These steps are outlined in the following posts:


 * Installing PostgreSQL
 * Installing PostGIS
 * Setting up the Spatial Database
 * Installing GeoServer

The files for this extension are maintained on SourceForge, and can be downloaded from here:
 * Latest release as a zip file NEED LINK
 * Subversion source code access NEED LINK

Whether you download from the .zip file or Subversion you want to put the following files in an extensions/SpatialWiki folder: SpatialWiki.php SpatialWiki.body.php SpatialWiki.i18n.php SpatialWiki.js

Once the files are installed add the following to LocalSettings.php:

The extension utilizes a number of configuration parameters which are setup in LocalSettings.php, for example like this:

$wgSpatialWikiDebugMessages = false; $wgSpatialWikiDatabase = "spatialwiki"; $wgSpatialWikiUsername = "postgres"; $wgSpatialWikiPassword = "secret"; $wgSpatialWikiPointsTable = "wikipts"; $wgSpatialWikiOpenLayersPath = "http://[your server]/OpenLayers-2.11-rc3"; $wgSpatialWikiWmsPointsUrl = "http://[your server]:80/geoserver/spatialwiki/wms"; $wgSpatialWikiGeoServerPointsLayer = "spatialwiki:wikipts";

Configuration Parameter Notes

The following values should be setup in LocalSettings.php.