Template talk:Coord

From VOC Wiki
Jump to: navigation, search

This template can be used whenever a UTM location / waypoint is added to a page. It outputs the waypoint in a standard format, and also adds a link that redirects to a page full of mapping links for the location, much like how Coordinates are shown in pages on wikipedia, e.g. Mount Price.

Usage

The template accepts 5 parameters: UTM zone, x coordinate, y coordinate, datum and "hidedatum". The first 4 parameters must be included for the template to work. The hidedatum parameter, if included, causes the template to not output the datum after the link. This may be useful for lists of waypoints where the datum is mentioned elsewhere on the page.

For example:

{{coord|10U|486404|5542900|NAD27}}

produces:

10U 486404E 5542900N (NAD27 datum)

or

{{coord|10U|486305|5543098|WGS84|hidedatum}}

produces:

10U 486305E 5543098N

Thoughts?

This now seems to be working as intended. Any thoughts on using this site-wide? I found myself adding links to google maps a lot and like the way wikipedia does it. For the geeks, the source to the redirection hack is here - I'm actually surprised I couldn't find something like that already. Seems everything wikipedia does with coordinates is in DMS. Matthew 19:07, 24 July 2007 (PDT)

Considering that this is what I see when I click on the links, I think it needs some work... but others may not have the same problem. Scott Webster 21:15, 24 July 2007 (PDT)
Interesting. Presumably you also see that gong show with links from the wikipedia pages? e.g. Mt Price / 49°92′N 123°03′W? The final page (at tools.wikimedia.de) is - of course - beyond my control, all my tool does is the conversion from UTM (WGS84 or NAD27) to DMS (WGS84) and forward people to the tools.wikimedia.de page. If it's that badly broken, then perhaps we don't want to use it. -- Matthew 23:34, 24 July 2007 (PDT)
Works ok with Firefox on Linux, though I'm not sure how useful most of those links are. Scott Webster 11:13, 25 July 2007 (PDT)
Is there a way to link this to iMapBC? It's generally way more useful than google maps.
I looked, can't find a way to input a coordinate via a get request - you have to navigate through the iMapBC menu to do it. I'll email them about it - last time I emailed they were quite quick to reply. -- Matthew 13:57, 25 July 2007 (PDT)
I believe I just posted a solution to this at Talk:Online mapping. Scott Webster 22:46, 26 July 2007 (PDT)
The nice thing about google maps and similar is you can use it to get a feel for where the location is in relation to other places, by zooming out and moving around. The "static" trip map centred on the location is also useful because it's an actual map. I could easily switch the script over to forward to that trim map instead, but it's nice for people to be able to scroll around. If there was some way to actually link into the imapbc application that would be ideal. As is, I'm not sure what the most appropriate solution is. -- Matthew 12:18, 27 July 2007 (PDT)
I think the ideal solution involves some sort of combination. Ideally there would be an easy interface for generating TRIM maps. iMapBC is fairly annoying to use (in my opinion) and produces output that is probably worse than just using this URL interface. We should be able to turn on UTM grid only for instance. trail.brijn.nu has a reasonable interface, but some customization might be nice. In particular I find having to enter the bounding box in decimal degrees to be pretty terrible. A centre point specifiable in any notation (UTM, DMS, DD, any datum) would be nice... with a size specification and resolution etc. This doesn't have to be a direct link from the Coord template, but perhaps there could be two links, one to google maps, one to the topo generation application. Presumably we could whip this up in php pretty easily. One problem I find with google maps is that there is relatively little on the map layer around most of the locations, so you have to zoom way out to see the roads and towns. Too bad they don't label major peaks, rivers etc.
One thing that is nice about trail.brijn.nu that might be harder to duplicate is the labelling of the UTM grid around the exterior of the map. It would be nice to have that work automatically. Perhaps we should just link to their site, but you have to create an account to generate large size maps, and they have the somewhat non-ideal interface.
Scott Webster 12:39, 27 July 2007 (PDT)
It would be cool if someone integrated topo information into google maps for Canada. There are a bunch of sites that do it for the us. Eg. [1] Scott Webster 11:13, 25 July 2007 (PDT)