Module talk:Location map/data/China

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconMaps Template‑class
WikiProject iconThis module is within the scope of WikiProject Maps, a collaborative effort to improve the coverage of Maps and Cartography on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.
WikiProject iconChina Template‑class
WikiProject iconThis module is within the scope of WikiProject China, a collaborative effort to improve the coverage of China related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.

Created[edit]

The mapper Template:Location map China was re-created by Ukrainian User:Амба on 15 July 2010 to set coordinates for x/y locations on a political map and terrain map of China, which have curved lines of latitude & longitude. The older China map-definition template, for using squared coordinates, is Template:Location map China (equirectangular). -Wikid77 (talk) 08:55, 16 October 2010 (UTC)[reply]

Testing coordinates x/y[edit]

The following are some test cases to ensure that the x/y for latitude and longitude are still calculated correctly, after any future updates to the template or China maps. The precisions are excessive for small map images, but might apply if maps were vastly enlarged, such as for GPS tracking.

  • Expected: x @35/95 = {{#expr: {{Location map China|x|35|95}} }} → 35.070444768306
  • Currently: x @35/95 = {{#expr: {{Location map China|x|35|95}} }} → 35.070444768306
  • Expected: y @35/95 = {{#expr: {{Location map China|y|35|95}} }} → 55.572316016539
  • Currently: y @35/95 = {{#expr: {{Location map China|y|35|95}} }} → 55.572316016539
  • Expected: x @38/100 = {{#expr: {{Location map China|x|38|100}} }} → 43.607545214063
  • Currently: x @38/100 = {{#expr: {{Location map China|x|38|100}} }} → 43.607545214063
  • Expected: y @38/100 = {{#expr: {{Location map China|y|38|100}} }} → 48.588567988405
  • Currently: y @38/100 = {{#expr: {{Location map China|y|38|100}} }} → 48.588567988405

Those are some examples, showing high precision. The values of x/y are used by {{Location_map}}, or {{Location_map_many}}, to place marker-images on the map of China. The end-digits of the numbers might vary, slightly, depending on the particular wikiserver computer hardware used to run the MediaWiki software for formatting this page to send over the Internet. -Wikid77 (talk) 08:55, 16 October 2010 (UTC)[reply]