Template talk:Location

From Wikimedia Commons, the free media repository
Jump to: navigation, search
Info non-talk.svg Template:Location has been protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit.
Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them.

This Template is intended to complement Template:Information.

I would like to add location data to images. So new services will be possible later. E.g. "Show me all images in a radius of 50 km to my position." or "Show me all pictures of museums within 100 km." If this data will be available, I think new stuff hence unimaginable will become possible. It is basically the extension of the good work of WikiProjekt Georeferenzierung towards images or other media. It will be a lot of work, and I don't know if others would be interested. But it is worth a try.

It should be added to the image description pages on top of Template:Information. Else, the data would appear at the bottom beneath the licence information and could not possibly be found. It is too specialised to be included in the Template:Information itself. So, many times it would simply be left open without data, to the detriment of the appearance of the Template.

Longbow4u 14:14, 22 April 2006 (UTC)

Contents

Example for use [edit]

See: Image:Hildesheim-Hoher.Weg.Huckup.01.JPG

Syntax {{Location|Degree|Minute|Second|Latitude|Degree|Minute|Second|Longitude|Information attributes}}
Example {{Location|52|09|03.70|N|9|57|02.79|E|type:landmark_region:DE-NI_scale:5000}}

Explanation [edit]

The example is for a landmark in the region Germany (DE), Lower Saxony (Niedersachsen NI). By scale you request the mapping program to render the map in a scale of 1/5000.) Information attributes on landmark and region should always be added. Scale is an optional parameter and is not necessarily required. To find adequate parameters for other regions of the Earth, please look at the project pages in the English Wikipedia (w:en:Wikipedia:WikiProject Geographical coordinates or in the German Wikipedia (w:de:Wikipedia:WikiProjekt Georeferenzierung).

Decimals are an error? [edit]

See also COM:AN#Broken location template

I've just noticed that many of my uploads are in Category:Pages with malformed coordinate tags; for some examples, see File:First Christian Church, Charleroi.jpg, File:Abandoned buildings in Phoenix Hill.jpg, File:Cemetery at the site of Petersburg, Ohio.jpg, and File:Cemetery at St. Valbert's.jpg. I've looked at numerous images that are in this category, and all of them have decimals in the coords; what's more, if I remove the decimal point and everything after it (e.g. {{Location|40|14|26.7|N|84|27|50.4|W}} becomes {{Location|40|14|26|N|84|27|50|W}}), the error disappears. Why are we marking description pages as errors because of their increased precision? Meanwhile, when did this start? I've uploaded so many pictures that I don't often look at old uploads like these ones, so I have no clue whether this would be an old problem or a new one. Nyttend (talk) 02:29, 2 May 2013 (UTC)

You are right that is not right, and I have never seen this problem before while cleaning Category:Pages with malformed coordinate tags. You should not remove decimals from the coordinates. --Jarekt (talk) 02:53, 2 May 2013 (UTC)
I undid the last edit as it seemed to be a problem with {{Object location}} (every time a page transcluding it was edited it would show this error). Unfortunately the error is now showing up as the template is rerendered, dumping ~80000 images into Category:Pages with malformed coordinate tags. So it appears not to be the template; it seems to be a problem with the {{#coordinates:}} parser function: User:Moogsi/Invalid latitude –⁠moogsi (blah) 07:28, 2 May 2013 (UTC)

Pictogram voting keep.svg Fixed - it was an bug in the GeoData extension –⁠moogsi (blah) 10:14, 2 May 2013 (UTC)

Phraseology [edit]

The wording "This and other images at their locations on..." (from Template:Location/en) seems a little awkward to me. I'd propose something like "View the locations of this and other nearby images on...". Any thoughts?  An optimist on the run! 12:13, 7 May 2013 (UTC)

I prefer fewer words. May be "View this and other nearby images on..."? --Jarekt (talk) 14:09, 7 May 2013 (UTC)
The shorter the better. --Dschwen (talk) 14:54, 8 May 2013 (UTC)
I've put in an edit request for Jarekt's suggestion.  An optimist on the run! 06:30, 9 May 2013 (UTC)
✓ Done} --Dschwen (talk) 20:23, 9 May 2013 (UTC)

location template for Google maps [edit]

Is there a template location with respect to Google Maps? GM uses a different format (dd° mm.mm) by giving decimal values of the minutes. Some users use these values in Template:Location or template:Location dec, resulting in an error (see here). Should we consider an own Template fot users using Google Maps format? -- Wo st 01 (talk / cont) 11:01, 11 May 2013 (UTC)

Google Maps uses standard decimal notation as expected by {{location dec}}.[1] The malformed notation on File:0x-kgl-saechs-altenb-1.jpg was added by DschwenBot. LX (talk, contribs) 12:44, 11 May 2013 (UTC)
Hmm, yeah, in 2009. But the bot would probably do it again. This is how the data was encoded in the EXIF, and strictly speaking it is not really malformed. It points to the correct location. It is just the #coordinate extension (deployed a few months ago) that seems to be pissy about this particular format. Looks like I'll have to amend the bot to clean up the coordinate data even more. --Dschwen (talk) 15:27, 11 May 2013 (UTC)
I use http://www.wikimapia.org/ to get geodata if that is any help.--Canoe1967 (talk) 20:51, 11 May 2013 (UTC)

Altitude [edit]

How to insert the parameter for camera altitude in location formula? --CTHOE (talk) 11:46, 12 May 2013 (UTC)

With alt, like this:
{{Location|50|33.72592|0|N|10|44.27657|0|E|alt:440.8_source:exif_heading:SW}}
for example. With the altitude given im meters. --Dschwen (talk) 21:15, 13 May 2013 (UTC)
Is that altitude above local ground, or above sea level? Powers (talk) 15:19, 14 May 2013 (UTC)
My bot normalizes this to sealevel if an AlittudeRef field is found, otherwise sealevel is assumed implicitly (which sea? I don't know. Altitude references are pretty subtle. Google for Switzerland sealevel reference, they use both the North Sea and teh Mediterranean, which are 10cm different if I recall correctly :-) ). --Dschwen (talk) 16:31, 14 May 2013 (UTC)
My GPS-receiver says:"Höhe über Normal-Null". --CTHOE (talk) 10:48, 16 May 2013 (UTC)
Look this error: File:Wegweiser-1-CTH.JPG and tell me, what's wrong. What will say the "SW" at the end of the location expression? --CTHOE (talk) 10:55, 16 May 2013 (UTC)
heading:SW means that the camera was facing in south-west direction (please verify that this is true. I assume you just copied it from above). --Dschwen (talk) 14:54, 17 May 2013 (UTC)