Extension:CoordinateConversion

MediaWiki extensions manual
OOjs UI icon advanced.svg
CoordinateConversion
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.7.0 (2020-04-23)
License GNU General Public License 2.0
Download
Example Scoutpedia.nl - nl.scoutwiki.org
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

  • {{#deg2dms: latitude , longitude }} geographic coordinates in decimal degree notation to degrees-minutes-seconds notation
  • {{#lat_deg2dms: latitude }}
  • {{#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 }}
  • {{#wgs84_2utm: 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 CoordinateConversion in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'CoordinateConversion' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.