Template:CH1903-WGS84

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

koor=L/B

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:CH1903-WGS84/doc.

Converts Swiss grid coordinates to WGS84; based on de:Template:CH1903-WGS84

Usage

{{CH1903-WGS84 |1= |2= |koor= }}

Template parameters

ParameterDescriptionDefaultStatus
1y-coordinatey-coordinate in km of the Swiss 1903 grid (e.g. 600)emptyrequired
2x-coordinatex-coordinate in km of the Swiss 1903 grid (e.g. 100)emptyrequired
kooroutput typechoose output L=longitude, B=latitudeemptyrequired

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Samples

Input
{{CH1903-WGS84|600|200|koor=B}}
Output
46.951081


Input
{{CH1903-WGS84|600|200|koor=L}}
Output
7.438637


Input
{{object location|1={{CH1903-WGS84|600|200|koor=B}}|2={{CH1903-WGS84|600|200|koor=L}}|3=region:CH}}
Output
Object location46° 57′ 03.89″ N, 7° 26′ 19.09″ E Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo


Input
{{subst:CH1903-WGS84|600|200|koor=L}}
Output
7.438637


Input
{{object location|1={{subst:CH1903-WGS84|600|200|koor=B}}|2={{subst:CH1903-WGS84|600|200|koor=L}}|3=region:CH}}
Output
Object location46° 57′ 03.89″ N, 7° 26′ 19.09″ E Kartographer map based on OpenStreetMap.View all coordinates using: OpenStreetMapinfo
Source
{{object location|1=46.951081|2=7.438637|3=region:CH}}