Extension:Gis/map sources

From MediaWiki.org
Jump to navigation Jump to search
Gis introduction geo tag map sources neighbors map area version database installation bugs

Map sources[edit]

The map sources extension is the target of the <geo> tag wikilink, and provides a page of available Internet map resources, in a manner much like the ISBN resource page. The extension provides functionality to preload external URLs with coordinates, so that most maps are essentially one click away.

There are currently 30 different built in replacement strings, supporting various form of specification of scaling and coordinates, such as UTM, OSGB36 and CH1903.

The map source file can be constructed from scratch, or one can use the map source example as a starting point, where there are preloaded pointers to around 20 different map engines, in addition to a pointer to http://GeoURL.org, which lists nearby resources on the Internet, and a pointer to the Extension:Gis/neighbor page and a direct link for the open source en:NASA World Wind software that provides interactive travel using aerial imagery and topological data. World Wind has a plug-in layer for Wikipedia articles that are tagged with a geographic coordinate. Note that this requires the worldwind URL tag to be enabled in Wikipedia.

The URL format for the map sources mechanism is:

$mediawiki/extensions/gis/index.php?geo=GEOBODY

where GEOBODY has exactly the same format as the body of the geo tag. Note that this URL form is used by the geo tag, so one would normally not need to refer to it explicitly.

Definition of the map source page[edit]

La definición de la página de fuentes de mapa es a través de The definition of the map sources page is via Wikipedia:Map sources, or a subpage of this. If you've just installed the Geo MediaWiki extension, replace "Wikipedia" with your wiki name, or simply follow a generated link from a geo tag on one of your pages and click the ‘Please add this page’ link.

Based on the map sources file, the following argument strings will be replaced, based on the coordinates and attributes given:

Latitude/longitude[edit]

{latdegdec} is the latitude expressed as a signed decimal number of degrees.
{latdegint} is the latitude expressed as a signed number of whole degrees.
{latdegabs} is the latitude expressed as a positive number of whole degrees.
{latNS} is an N or S.
{latmindec} is the latitude decimal number of minutes.
{latminint} is the latitude number of whole minutes 0..59.
{latsecdec} is for latitude decimal number of seconds.
{latsecint} is for latitude number of whole seconds 0..59.

{londegdec} is the longitude expressed as a signed decimal number of degrees.
{londegneg} is the same as londegdec, except with the sign switched, i.e positive for East.
{londegint} is the longitude expressed as a signed number of whole degrees.
{londegabs} is the longitude expressed as a positive number of whole degrees.
{lonEW} is an E or W.
{lonmindec} is the longitude decimal number of minutes.
{lonminint} is the longitude number of whole minutes 0..59.
{lonsecdec} is the longitude decimal number of seconds.
{lonsecint} is the longitude number of whole seconds 0..59.

UTM and variations[edit]

{utmzone} is the UTM standard zone, e.g. 32V
{utmnorthing} is the UTM Northing reference (for utmzone)
{utmeasting} is the UTM Easting reference (for utmzone)
{utm33northing} is the UTM Northing reference for zone 33
{utm33easting} is the UTM Easting reference for zone 33
{osgb36ref} is an Ordnance Survey OSGB36 map reference. It is valid for a zone surrounding the British Isles, and is emtpy otherwise
{osgb36northing} is the OSGB36 Northing reference
{osgb36easting} is the OSGB36 Easting reference
{ch1903northing} is the Northing reference for Switzerland (Swiss grid)
{ch1903easting} is the Easting reference for Switzerland

Scale[edit]

{scale} is a map scale factor, e.g. 10000 for 1:10000.
{mmscale} is also the map scale factor, but rounded to the nearest scale supported by Multimap.
{zoom} is a Mapquest style zoom factor, derived from scale
{altitude} is an altitude equivalent scale indicator derived from scale, suitable for MSN maps et al
{span} is a scale indicator derived from scale, suitable for Google maps et al.