Extension:EPSG

This page is a translated version of the page Extension:EPSG and the translation is 67% complete.
Other languages:
MediaWiki 拡張機能マニュアル
OOjs UI icon advanced-invert.svg
EPSG
リリースの状態: 安定
実装 パーサー関数 , 特別ページ
説明 Allows the conversion of coordinates to various coordinate systems using the EPSG Geodetic Parameter Dataset
作者 Wouter Rademaker (Egelトーク)
最新バージョン 1.0 (2021-09-16)
MediaWiki
ライセンス 二条項 BSD ライセンス
ダウンロード
Scoutpedia.nl - nl.scoutwiki.org

使用状況とバージョン マトリクスを確認してください。

The EPSG extension allows the conversion of coordinates to various coordinate systems using the EPSG Geodetic Parameter Dataset.

This extension is a MediaWiki front end for the conversion done by epsg.io.

  • EPSG:4326 - WGS 84, latitude/longitude coordinate system based on the Earth's center of mass, used by the Global Positioning System among others.
  • EPSG:3857 - Web Mercator projection used for display by many web-based mapping tools, including Google Maps and OpenStreetMap.
  • EPSG:7789 - International Terrestrial Reference Frame 2014 (ITRF2014), an Earth-fixed system that is independent of continental drift.
  • EPSG:7415 - Amersfoort / RD New + NAP height

Other codes can be found on epsg.org, epsg.io and other sites.

使用法

  • {{#epsg:x,y,z|source coordinate reference system|target coordinate reference system}} - Conversion from coordinates x,y,z to an other coordinate reference system
  • {{#epsg_2wgs84:x,y,z|source coordinate reference system}} - Conversion from other coordinate reference system to WGS84 Latitude, Longitude, Height
  • {{#wgs84_2epsg:latitude , longitude , height|target coordinate reference system}} - Conversion from WGS84 Latitude, Longitude, Height to an other coordinate reference system

Default coordinate reference system is EPSG:4326 - WGS 84.

  • {{#epsg:4.88352559,52.37453253,0||7415}}
  • {{#epsg:4.88352559,52.37453253,0|4326|7415}}
  • {{#epsg:4.88352559,52.37453253||7415}}
  • {{#epsg:4.88352559,52.37453253|4326|7415}}
  • {{#wgs84_2epsg:52.37453253,4.88352559,0|7415}}
  • {{#wgs84_2epsg:52.37453253,4.88352559|7415}}

All give the same values, approximately: 120701,487525,-43

  • {{#epsg:120701,487525,-43|7415}} gives, approximately: 4.88351, 52.3745, 0
  • {{#epsg_2wgs84:120701,487525,-43|7415}} gives, approximately: 52.3745, 4.88351, 0

The extension is not dependent, but works best with the Semantic MediaWiki, Maps and Arrays extensions.

There is a special page "EPSGTest" (Special:EPSGTest) provided by this extension to give an overview of example use cases and their expected results.

インストール

  • Downloadして、ファイルをextensions/フォルダー内のEPSGという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    wfLoadExtension( 'EPSG' );
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

Configuration

Optionally, you can set the base URL used for the conversion.

$wgEPSG_URL= ''; default: "https://epsg.io/trans"

You can use a server that runs the code from github.com/maptiler/epsg.io.