Incubator escapee wiki:WikiProject Geographical coordinates
Template:Short description Template:Redirect Template:WikiProject status
WikiProject Geographical coordinates aims to better organize location information in articles containing a set of numbers that identifies location on and relative to the Earth. In particular, we aim to establish a standard for uniform handling of latitude and longitude coordinates as given in various Wikipedia articles, somewhat analogous to how ISBN numbers are handled.
Template:Collapse top NOTE: This is a concept currently under development, so this is subject to change.
Related WikiProjectsEdit
WikiProject Council includes this WikiProject in its Geographical directory. This WikiProject is an offshoot of WikiProject Maps:
- WikiProject Geography
- WikiProject Maps
- WikiProject Geographical coordinates
- WikiProject Maps
...and is the parent project of:
Other WikiProjects that make use of geographical coordinates include: Template:Div col
- Meta:Category:Wikimaps
- WikiProject Cities
- WikiProject Countries
- WikiProject Glaciers
- WikiProject Lakes
- WikiProject Microformats Geo
- WikiProject Mountains
- WikiProject OpenStreetMap
- WikiProject Protected areas
- WikiProject Rivers
- WikiProject U.S. counties
- WikiProject United States
Associated PortalsEdit
File:Worldmap LandAndPolitical.jpg The AtlasPortal is associated with WikiProject Geography.
File:Terrestrial globe.svg The Geography Portal is associated with WikiProject Geography.
ParticipantsEdit
This list has been moved to its own page.
GoalsEdit
- File:Undcstrmrc.png Should provide a uniform markup for all geographic coordinates
- File:Undcstrmrc.png Should provide a user-preferred appearance for all geographic coordinates
- File:Greentree.jpg Markup should be easy and natural to use
- ☑.svg File:Undcstrmrc.png Should be able to have a uniform, extensible way of accessing all types of map resources, avoiding having direct external links to maps in articles
- ☑.svg Clicking on a reference navigates directly to a page with external pointers to various resources, with coordinates automatically embedded where possible. The resources can be maps of various kinds, topological charts, satellite photos and others.
- ☑.svg Create a database of points, enabling generation of navigatable maps with a clickable icon appearing for every location for which there is a Wikipedia article. This has been implemented for NASA World Wind, Google Earth (see below) and Google maps (see below).
- ☑.svg Serve as a tool for finding Wikipedia articles describing nearby locations. See also meta:Wikipediatlas.
- File:Question dropshade.png Adhere to existing Internet standards for geographic coordinates as far as possibleTemplate:Clarify such as using WGS84 for terrestrial coordinates
Usage guidelinesEdit
- See also MOS:COORDS
In general, coordinates should be added to any article about a location, structure, or geographic feature that is more or less fixed in one place. Such items can vary in size from a single tree (or smaller) to entire oceans or continents. Coordinates should also be added to articles about events that are associated with a single location, for example, the Ufa train disaster. Guidelines for less obvious situations are given below.
Coordinates are appropriate for the top articles or within infoboxes of the following types of articles:
- Businesses/organizations with a single location (even if they are defunct)
- Demolished buildings/structures
- Buildings/structures that have been proposed, but not yet built (if there is a reliable source for the location)
- Permanently docked ships (and shipwrecks)
Do not add coordinates to the following types of articles:
- Biographies of living people
- Works of art (other than permanent outdoor statues, installations or murals)
- Sports teams (add to the stadium article instead)
- Businesses with multiple locations (although listing coords for individual locations in a table may be appropriate)
- Ships that are not permanently docked or sunk
Other types of articles may be decided on a case-by-case basis.
Which coordinates to useEdit
National mapping agencies such as the Geographic Names Information System (GNIS), Ordnance Survey (OS), and Geographical Names Board of Canada (GNBC) are usually reliable sources for coordinates. The GEOnet Names Server (GNS) database is not reliable. Always double check the coordinates on an internet mapping service. For other locations, the following points should be considered:
- For villages, towns, communities, etc., use the current centre. Where this is difficult, choose the earliest known settlement of that name. Be aware that the GNIS coordinates may be an arbitrarily chosen civic feature, as that was the usual rule.
- For military and industrial establishments (e.g., castles, barracks, dockyards, car plants) use the main gate.
- For administrative districts, use the head office.
- For geographical features with an area, such as lakes, reservoirs, and islands, use a point reasonably in the center of the feature. (Remember not to specify too much precision; see Precision guidelines below.)
- For linear features, see Wikipedia:WikiProject Geographical coordinates/Linear. Be aware that the GNIS primary coordinates will usually be of the feature "mouth" and thus may differ.
MarkupEdit
The practical usage of coordinate markup in Wikipedia is described in the style guide for geographical coordinates. For use on maps and other services, parameters may also be required.
A complete entry could for example be: {{coord|51|28|40|N|0|0|6|W|type:landmark_scale:2000_region:GB|display=title}}
See also: Obtaining coordinates
TemplatesEdit
Template:Yytop Template:Yy Template:Yy Template:Yy Template:Yy Template:Yyend
Edit
The template {{WikiProject Geographical coordinates}} may be added to relevant Talk pages. This adds the page to several categories and displays as: Template:WikiProject Geographical coordinates
Implementation detailsEdit
Coordinate templatesEdit
There are two ways of specifying coordinates:
- Template:Tlx – Accepts multiple data formats and supports a style sheet preference for display format, plus a Geo microformat.
Coord
may be placed anywhere in the article source text, inline, with prose text. For example "Mount Everest is at {{coord|27|59|16|N|86|56|40|E}}
", which displays as "Mount Everest is at Template:Coord". To display coordinates at the page's top, near the article's title, in a skin-dependent way, usedisplay=title
(see example at Krasnoyarsk hydroelectric dam). To display both inline and top, usedisplay=inline,title
. - Infoboxes – Many infobox templates for places have a parameter, typically Template:Para, for specifying a place's coordinates. The template internally uses Template:Tl and may therefore also display in the title area. See Template:Infobox Settlement and Template:Infobox Mountain for documentation, or, usage examples at Los Angeles and Mount Everest.
(Before September 2008, there was a widely-used family of templates of the form coor .... These are deprecated and have been replaced by Template:Tl. For an overview of choices: WikiProject Geographical coordinates/comparison.)
ParametersEdit
Following the geographical coordinate, further parameters can optionally be supplied, separated by underscores. This helps display suitable map resources (see Template:GeoTemplate), and will help Wikimaps become fully functional.
- Template:Tlx displays Template:Coord
It has
- type:landmark
- globe:earth
- region:US-AK
- scale:150000
- source:gnis
type:TEdit
{{#invoke:Shortcut|main}} Incubator escapee wiki:WikiProject Geographical coordinates/type:
dim:DEdit
Incubator escapee wiki:WikiProject Geographical coordinates/dim:
scale:NEdit
{{#invoke:Shortcut|main}} Incubator escapee wiki:WikiProject Geographical coordinates/scale:
region:REdit
{{#invoke:Shortcut|main}} Incubator escapee wiki:WikiProject Geographical coordinates/region:
globe:GEdit
Incubator escapee wiki:WikiProject Geographical coordinates/globe:
source:SEdit
{{#invoke:Shortcut|main}} Incubator escapee wiki:WikiProject Geographical coordinates/source:
NameEdit
Template:Tl takes |name=name
If an article contains several display=inline coordinates, each of these may be supplied with a unique name. This name will be used to display the coordinate on the WikiMiniAtlas, and will cause the template to emit an hCard microformat using that name, even if used within an existing hCard. Do not use when the name is that of a person (e.g for a gravesite), as the generated hCard would be invalid. Also, do not use square brackets in names.
Display preferencesEdit
FormatEdit
format=dec
will reformat the coordinates to decimal degrees for all readers.format=dms
will reformat the coordinates to degrees | minutes | seconds (dms) format for all readers.
Creating new templatesEdit
When creating new templates or infoboxes, use Template:Tl. Unless a template uses the coordinate data in another way, the Template:Tl template should be the field value. For example, Template:Tl accepts coords = {{coord|45|N|6|E|type:waterbody}}
.
If coordinate data are used directly by a template, use the following parameter names for coordinates:
|
|
A provision for accepting decimal coordinates is recommended. For example, allow lat_d = 45.678 | long_d = -123.456
and omission of the remaining parameters.
Where the United Kingdom's Ordnance Survey grid references are used as the coordinates, use Template:Tlx.
For articles which have no coordinates, but need them, use Template:Tlx.
Linear featuresEdit
For draft guidance on, and examples of, coordinates for linear features (rivers, roads, bridges, tunnels, etc.), see Wikipedia:WikiProject Geographical coordinates/Linear.
How to obtain geographical coordinatesEdit
See Obtaining geographic coordinates
See also: Category:Articles needing coordinates, Maybe-Checker
Geodetic systemEdit
All coordinates specified through Template:Tl must be referenced to WGS84, or an equivalent datum. WGS84 is required for some of the conversions done by the geohack extension.
British national grid references of the Ordnance Survey use its own OSGB36 datum, which is correct for use in national grid references; the correct transformations will automatically be applied when national grid coordinates are used in Template:Tl tags. However, OSGB36 latitude/longitude coordinates should not be used anywhere in Wikipedia; please use WGS84 lat/long instead.
Template:AnchorPrecision guidelinesEdit
{{#invoke:Shortcut|main}} Regardless of how coordinates are obtained, consider the precision specified in a Wikipedia article. Reliable secondary sources exist for some locations. Without a reliable source, the larger the object being mapped, the less precise the coordinates need to be. Cities must be specified with a precision of degrees, minutes and seconds to respect historical norms. When the #Which coordinates to use guideline is used, degrees, minutes and seconds or d.dddd are the default. To specify a particular point in the city, such as a building, generally requires precision down to degrees-minutes-seconds or d.dddd° if decimal degrees are used. In the case of objects such as fountains or statues, it may be necessary to use d°m's.s" or d.ddddd°. Higher precisions should be avoided, as they greatly exceed the accuracy of civilian GPS and online mapping services. (Using 4 m accuracy as an estimate for civilian GPS: Depending on the coordinates format and the latitude, the next-higher precisions exceed the accuracy by a factor of somewhere between 13 and 72.)
A general rule is to give precisions approximately one-tenth the size of the object, unless there is a clear reason for additional precision. Overly precise coordinates can be misleading by implying that the object is smaller than it truly is.
There is no set way to determine object size, and the boundaries of many geographical objects are not clearly defined or not readily available. The difference rarely affects the suggested coordinates precision, so a rough size estimate is usually adequate. However, it should be noted that object size is always linear (one-dimensional), not an area measurement.
In the two most-used coordinate representations, degrees-minutes-seconds and decimal degrees, precision is, as a useful approximation,
|
|
Conversions: Template:Convert, Template:Convert, Template:Convert; Template:Convert, Template:Convert, Template:Convert
The values in the table give distances in the east-west direction corresponding to a small change in longitude, at different latitudes. You can take the equator columns of the table as a rough guide to distances in the north-south direction that correspond to a small change in latitude, since they vary only a little bit at different latitudes. For simplicity, however, the latitude precision is commonly copied from that of the longitude.
Precision tablesEdit
{{#invoke:Shortcut|main}} The following tables show suggested coordinates precisions for various object sizes and latitudes. Refer to the preceding section for more information about coordinates precision. To use these tables:
- Choose one of the tables depending on whether you want degrees-minutes-seconds format or decimal degrees format
- Find the column that is closest to the latitude of your object
- Find the row that is closest to the size of your object
- Note the coordinates precision at the intersection of your row and column
Template:Collapse top Example: You want coordinates, in decimal degrees format, for Yosemite National Park, California, U.S.
- The size of the object is roughly 70 km
- GNIS query gives the Park's location, in decimal degrees, as: 37.8483188 (north latitude), −119.5571434 (west longitude)
To solve:
- Choose the Decimal degrees format table
- Find the 45° column; 37.8483188 is (slightly) closer to 45° than to 30°
- Find the 50 km row; 70 km is closer to 50 km than to 100 km
- Note the precision at the intersection of row and column: d.d°
- Round to the selected precision: 37.8, −119.6
(This is a good example of a borderline case, as the latitude is quite close to 37.5°, the midpoint between 30° and 45°. If the Park were a mere 25 miles to the south, you would use the 30° column instead, yielding a different precision: d.dd°. You could opt for that precision instead, giving 37.85, −119.56. That's your call. But the table shows that more than two decimal positions would definitely be too precise for this case.) Template:Collapse bottom
|
|
Mathematical formulasEdit
You can also calculate the kilometers per degree of longitude, k, using one of the following formulas (θ is the latitude, 6378.14 km is the equatorial radius, and 6356.8 km is the polar radius):
Accurate, assuming a spheroid:
- <math>k = \frac{\pi}{180}\cos(\theta)\sqrt{\frac{(6378.14^2\cos\theta)^2+(6356.8^2\sin\theta)^2}{(6378.14\cos\theta)^2+(6356.8\sin\theta)^2}}</math>
Approximate:
- <math>k = 111.3\cos\theta\,</math> Equator to latitude 25° (north or south)
- <math>k = 111.2\cos\theta\,</math> Latitude 30° to 40°
- <math>k = 111.1\cos\theta\,</math> Latitude 45° to pole
Coordinates from other language versions (iwcoor)Edit
Import of coordinates from other wikis |
---|
|
Last updated: 16:02, 6 April 2009 (UTC) |
To do listEdit
#ifeq: yes | yes | |{{ #if: | | {{ #ifexist: {{#rel2abs:Wikipedia talk:WikiProject Geographical coordinates/to do|}} | | {{#switch:Incubator escapee wiki |User |User talk= |#default={{#ifeq: false | false ||}} }} }} }}
}}
Tools and applications based on coordinates from WikipediaEdit
Articles (and coordinates) can be found through the pages using the templates in Category:Coordinates templates
All coordinates are available for download in Wikipedia database dumps. To get the coordinates from the XML format dump of all articles (enwiki-latest-pages-articles.xml.bz2, 4 GB), the dump needs to be parsed for pages containing coordinates in the entry formats listed above. Most articles in Wikipedia conform to these formats and coordinates are easy to parse from the wikitext with regular expressions for simple character sequences. As all coordinates link to the same PHP tool, they may also be found from the SQL format table of external links (enwiki-latest-externallinks.sql.gz, 725MB). This second method will however not include all available information about the coordinates, such as their position between the article body and the title area.
There may exist some groups of articles that generate the coordinate data dynamically and are not in any of the standard entry formats, as some editors may have wished to facilitate entry of common coordinate related information, while only keeping the output similar with the existing templates. To get all such coordinates, all the articles in the database dump need to be run through a wikitext parser (such as the PHP one in MediaWiki) to expand all the templates, and the result parsed for coordinates. Alternatively, it is also possible to download the HTML generated from all the article and expanded template content (wikipedia-en-html.tar.7z, 14 GB).
Note that mass downloading individual pages from the live Wikipedia site is strongly discouraged and may lead to discontinued access.
NASA World Wind SamplesEdit
All examples use NASA World Wind, with the Wikipedia overlay. This is purely meant as an example of using a coordinated concept for geographical coordinates.
File:WW washington.png Links to Wikipedia articles are represented by yellow rings, such as in this view of the Washington DC National Mall, using USGS aerial photos |
File:WW sanfrancisco.png This view of San Francisco is done using Landsat 7 satellite images. Again, note the rings that indicate Wikipedia articles |
File:WW mountbaker.png Combine radar topographic (Shuttle Radar Topography Mission) data with Landsat-7 images for full 3D visualization, as in this image of Mount Baker. Upper ring is for the Space Needle. Note also that vertical exaggeration is enabled. |
View Wikipedia in Google EarthEdit
Project Wikipedia-World scan 11 Dumps (ca,cs,de,en,eo,es,fi,fr,nl,pt,ru) and provides:
- dynamic Google-Earth layers in 21 languages. For instance: english Layer, español Layer
- static Google-Earth layers in 10 language with different folders (Castles, Parks,...), Download at webkuehn.de
- SQL-Data of all scanned coordinates
Copernix.io - View and search Wikipedia Articles on a mapEdit
Copernix.io is a geographical search engine allowing users to search places and information from Wikipedia on a map. Users can leave the search bar empty to see all pages within an area or type a query to get subject specific information.
Some useful examples can be found at:
The main search page is at:
Visualization of Wikipedia articles with Google MapsEdit
- www.geonames.org over 800,000 Wikipedia articles in 230 languages on Google maps. The placemarks include short descriptions of the displayed items, extracted from the Wikipedia articles. Webservices for full text search and reverse geocoding of Wikipedia articles.
WikiMiniAtlas JavaScript pluginEdit
WikiMiniAtlas is a JavaScript to add to your monobook.js. It adds a draggable and zoomable (just like GoogleMaps) map to all geo-coded articles. Clickable labels with links to other geocoded articles are placed on the map to allow spatial browsing of Wikipedia. Map layers include satellite images (using Landsat7 data) with zoomlevels down to a resolution <100m, and daily updated MODIS satellite data.
WikiMiniAtlas is currently enabled on Wikipedia (by clicking on the globe (File:Erioll world.svg) beside the coordinates).
All geodata in SQL file formatEdit
- Project Wikipedia-World, provides the complete database for download in SQL-file format.
Export multiple coordinatesEdit
Kmlexport tool: Pages marked with multiple coordinates or categories of articles with coordinates can be exported as KML (for use in Google Earth, for example). This tool and some alternatives can be found on clicking the coordinates or by applying the Template:Tl template on a page.
The Kmlexport can be used directly or through Google Maps; see for example Colmar Pocket or Category:Capitals in Europe. Export from articles is real-time, export from categories is based on stored extractions (may be several weeks old).
KML may be converted in other formats, suitable as Points of Interest (POI) for GPS systems.
Other sources:
Coordinates search toolEdit
tools:~dispenser/cgi-bin/geosearch.py allows for regular expression searching on the GeoHack links in the external links table. This has the advantages of near real time information and powerful pattern matching. The following are some example queries created as a demonstration of the flexibility of the system.
Incubator escapee wiki:WikiProject Geographical coordinates/coordinates search tool
WikiProject Geographical coordinates categoriesEdit
<categorytree>WikiProject Geographical coordinates</categorytree>
World map displaying the concentration of wikipointsEdit
See alsoEdit
- Articles of interest
- Coordinate system, a system that uses numbers to uniquely determine position
- Geoinformation, created by manipulating geographic (or spatial) data (generally known by the abbreviation geodata) in a computerized system
- Geocaching
- Geotagging, a process of adding geographical identification metadata to various media
- ISO 6709, standard representation of latitude, longitude and altitude for geographic point locations
- LOC record, a means for expressing geographic location information for a domain name
- Wikipedia project pages of interest
- Categorization of location, proposal to generate lists of articles about nearby locations from a given Wikipedia article
- Coordinate-referenced map templates, inactive guideline proposal for using coordinate-referenced map templates to generate maps in Wikipedia articles
- Geographic references, a list of sources used in the creation of encyclopedia articles on various geographic topics and locations
- Geonotice, location targeted messages using geocoordiates to announce upcoming Wikipedia meetups and local events
- How to add geocodes to articles, a short guide to how to add geographic coordinate tags to Wikipedia articles
- How to add geocodes to articles by User:EncMstr, EncMstr's guide on how to enter coordinate data using Template:Tlx
- MoS Geographical coordinates, Official style guideline on geographical coordinates
- Mobile access, How to use a mobile phone to search for geotagged Wikipedia articles near your current location
- Obtaining geographic coordinates, listing various ways on how to obtain geographic coordinates for use in an article.
- Version_1.0_Editorial_Team/WPPlaces, Version 1.0 Editorial Team contact results with WikiProject Geographical coordinates
- WikiProject Maps/Source materials, list of free maps for use in creating geographical maps for Wikipedia.
- Other
- Commons:Commons:Geocoding
- meta:Geographical data
- meta:WikiGPS
- meta:Wikipediatlas
- meta:WikiProjects Geographical coordinates
- Wikitech-l Extensions for handling geographical coordinates
- Templates
- Template:Coor Maidenhead (displays geographical coordinates as Maidenhead grid squares)
- Template:Canada NTS Grid (displays designator for National Topographic System map sheet containing specified geographical coordinates)
- Template:Sky (the same idea for astronomical objects)
- Wikimedia and OpenStreetMap
- Announcement http://lists.wikimedia.org/pipermail/wikitech-l/2009-April/042483.html
- Signpost/2009-04-06/Interactive maps, "a new initiative is underway to make OpenStreetMap available as interactive maps within Wikipedia"
- mw:Project:Developer meet-up 2009/Notes/Mapping
- m:OpenStreetMap, m:Talk:OpenStreetMap
- Maps-l: Archives, Current month
- Bots used in this project
- User:The Anomebot2 geo tagging
- WikiProject Geographical coordinates in the News
- Signpost/2008-06-02, in MoS geographical coordinates, This section was restored with an edit summary to see WP:GEO.
- Signpost/2009-09-14, "Another milestone was reached in the English Wikipedia, with more than 500,000 articles now providing geographic coordinates based on the Template:Tl template, according to the template transclusion counter. WikiProject Geographical coordinates, however, knows of at least another 169,000 articles which ideally should have coordinates; these are listed in the category tree Category:Articles missing geocoordinate data by country. See Wikipedia:How to add geocodes to articles for more information. "
- Signpost/2010-03-22,New commercial Wikipedia iPhone app "Nearby" provides a map with links to geotagged Wikipedia articles in the vicinity.
- Signpost/2010-05-03, "The Wikimedia Foundation has updated the official "Wikipedia Mobile" iPhone app, first released in August 2009. New features include an improved layout, bookmarkable articles, and plotting geolocated articles near to the user's location on a map. The app is a free download from the App Store."
- Signpost/2010-11-01, "One million geocoordinates: Last week, the number of geographical coordinates on the English Wikipedia surpassed one million, in around 620,000 articles. At the same time, around 180,000 articles were marked as needing coordinates (which would correspond to a completion rate of 78% if no more geocodable articles were added). In September 2009, the milestone of half a million articles with geocoordinates had been reached (see Signpost coverage). In related news, links to display interactive OpenStreetMap maps within articles were recently enabled by default on the German and Norwegian (Bokmål/Rikmål) Wikipedias (to see an example, click "Karte" on the top right of de:Berlin), the fruit of a collaboration that had been begun last year, supported by the German Wikimedia chapter (see Signpost coverage)."
ReferencesEdit
External linksEdit
- 3.4.2 GEO type definition to specify information related to the global positioning of the object that a vCard represents.RFC2426
- How latitude and longitude are stored in a DNS record.RFC1876
- Memo describing a method of adding simple geographic position information to HTTP transactions using extension headers.[1]
- Memo describing a method of registering HTML documents with a specific geographic location through means of embedded META tags.[2]
- Proposal to create a new IANA Time Zones registration process as a central repository for time zone names.[3]
- WikiProject Geographical coordinates hot articles watchlist.[4]Template:Dead link
Template:Wikipedia policies and guidelines Template:WikiProject Footer