Extension:Gis/installation

Installation
After having checked out the MediaWiki from CVS, move the extensions/gis directory to the $mediawiki/extensions directory and add these lines to LocalSettings.php:

$wgMapsourcesURL = "$mediawiki/extensions/gis/index.php"; include( "extensions/gis/geo.php" ); include( "extensions/gis/database.php" );

If the $wgMapsourcesURL is omitted, the geo tag will not include a link to the map sources.

If inclusion of database.php is omitted, there will be no database, so the neighborhood and map support functions are disabled.

If using the database function, the gis database must be enabled. This may either be done via the database maintenance tool, running gisdb.sql. Or it can done directly in MySQL:

# mysql -u USERNAME -p use wikidb; source gisdb.sql; quit;

If the map sources are used, a suitable map source file should be installed in Wiki:Map sources (or equivalent). You can use the map source example as a starting point.