Open main menu

Extension:Coorconv

MediaWiki extensions manual
OOjs UI icon advanced.svg
Coorconv
Release status: beta
Implementation Parser function
Description Allows the conversion of WGS84 coordinates to various national coordinate systems
Author(s) Wouter Rademaker (Egeltalk)
Latest version 0.6.0 (2015-03-15)
License No license specified
Download
Example Scoutpedia.nl - nl.scoutwiki.org
Translate the Coorconv extension if it is available at translatewiki.net
Check usage and version matrix.

The Coorconv extension allows the 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

UsageEdit

  • {{#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

InstallationEdit

  • Download and place the file(s) in a directory called Coorconv in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Coorconv/Coorconv.php";
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.