Extension:Coorconv

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png

Release status: beta

Implementation Parser function
Description conversion of WGS84 coordinates to various national coordinate systems
Author(s) (Egeltalk)
Last version 0.5.1
License No license specified
Download https://github.com/tobixen/mediawiki-coorconv
Example Scoutpedia.nl - nl.scoutwiki.org
Check usage and version matrix

What can this extension do? [edit]

Conversion of WGS84 coordinates to the national coordinate systems of:

  • the Netherlands - Rijksdriehoekscoördinaten, RD
  • France - Lambert93
  • Belgium - Lambert2008
  • Suisse - CH1903
  • Finland - TM35FIN, extended UTM zone 35N
  • Canada - MTM, SCOPQ
  • Great Britain - OSGB36
  • Republic Ireland and North Ireland - Irish Transverse Mercator
  • Luxembourg - LUREF

Conversion of (WGS84) geographical coordinates to Universal Transverse Mercator (UTM)

Internal functions for

  • transverse Mercator projection (WGS84)
  • transverse Mercator projection (other mapdata)
  • Lambert projection
  • Datumtransformation

Usage [edit]

  • {{#lat_deg2dms: latitude }} geographic coordinates in decimal degree notation to degrees-minutes-seconds notation
  • {{#long_deg2dms: longitude }}
  • {{#lat_dms2deg: degrees | minutes | seconds | hemisphere }} geographic coordinates in degrees-minutes-seconds notation to decimal degree notation
  • {{#long_dms2deg: degrees | minutes | seconds | hemisphere }}
  • {{#lat_long2utm: latitude | longitude | zone (optional) }} - WGS84 Latitude/Longitude to UTM
  • {{#wgs84_2rd: latitude | longitude }} - WGS84 Latitude/Longitude to RD - the Netherlands
  • {{#wgs84_2lb93: latitude | longitude }} - WGS84 Latitude/Longitude to Lambert93 - France
  • {{#wgs84_2lb08: latitude | longitude }} - WGS84 Latitude/Longitude to Lambert2008 - Belgium
  • {{#wgs84_2ch03: latitude | longitude }} - WGS84 Latitude/Longitude to CH1903 - Suisse
  • {{#wgs84_2tm35fin: latitude | longitude }} - WGS84 Latitude/Longitude to TM35FIN = extended UTM zone 35N - Finland
  • {{#wgs84_2mtm: latitude | longitude | zone (optional) }} - WGS84 Latitude/Longitude to MTM - Canada (SCOPQ in Quebec)
  • {{#wgs84_2osgb: latitude | longitude }} - WGS84 Latitude/Longitude to OSGB36 - Great Britain
  • {{#wgs84_2itm: latitude | longitude }} - WGS84 Latitude/Longitude to Irish Transverse Mercator- Republic Ireland and North Ireland
  • {{#wgs84_2luref: latitude | longitude }} - WGS84 Latitude/Longitude to LUREF - Luxembourg

Installation [edit]

Download the extension from github, i.e. in the extensions directory, do

git clone https://github.com/tobixen/mediawiki-coorconv.git Coorconv

. Then add the following to LocalSettings.php:

require_once("$IP/extensions/Coorconv/Coorconv.php");