Wikipedia talk:WikiProject Geographical coordinates/Archive 1Format for displayRestating things I mentioned on the Manual of Style talk page, and more ConversionQ: I was given the following coordinates ( X: 1.019.760, Y: 1.041.109 ) and have no idea how to convert them to Grades, minutes and seconds. Does any body know? spacing issuesOne of your stated goals is more uniformity in the representation—but we need to decide what that uniform representation should be. For example, should there be any spaces at all within the numbers? Both ways are used. NIST, in explaining that this is an exception to the rule that there is a space between a number and its symbol, closes up all the spaces its example "α = 32°22′8″" http://physics.nist.gov/Pubs/SP811/sec07.html
I prefer the closed-up representation, with spaces between the number and the directional indicators and between latitude and longitude:
Gene Nygaard 12:04, 14 Feb 2005 (UTC)
PS: My only idea would be to use a small nbsp, as in the 2nd example below:
Did I mention that #3 looks awful with my font. Probably did. -- Egil 13:16, 14 Feb 2005 (UTC) FYI I've placed a screen shot of how the above section looks in my Firefox here. -- Egil 19:07, 14 Feb 2005 (UTC)
If you see here you'll notice on my screen for #3 the degree and ticks touch the next digit. That I think is outright ugly. Anyway, this is no hurry, and does not need to be decided now, since this policy issue on formatting can be easily enforced in Template:coor dms et al at any point. My suggestion is leaving it as #2 for a while, and try to reach an agreement when we have more experience. -- Egil 09:21, 15 Feb 2005 (UTC) The above shows how the coordinates of North Cape, Norway and Knivskjellodden are rendered on my screen, magnified 4X, when there are no blanks. Note how the prime is glued to the digits 2 and 6, and is also too close to the 5 (the combination with the 4 looks OK here, but not so good in 1X). I can assure that this is as bad as it looks in 1X also, bordering to the unreadable (as well as being ugly). Note also how the degree sign is closer to the following digit, which also looks unbalanced. For other digits then shown here, the degree sign touches the following digit. -- Egil 16:39, 15 Feb 2005 (UTC)
Done (I have changed the example to make it more worst case). Hajor's suggestion renders exactly like #3. Note how the symbols touch the next character. This is unacceptable. I believe #2 to be the best variation so far, leaving sufficient air around the symbols, while not as wide as the space used between words. (Ideally, that space could have been a pixel narrower) -- Egil 08:04, 16 Feb 2005 (UTC)
I notice the issue of spaces and widths thereof is also discussed on Wikipedia_talk:Manual_of_Style_(dates_and_numbers)#20m_or_20_m.2C_etc.
In case anyone cares, below is what it looks like on my Mac, in Safari. As you can see, there's no problem making out all the glyphs. But I dislike the format without any spaces, because it looks like a long random alphanumeric string—you have to stop and think to parse it out. With even a bit of space, it intuitively reads as words "twelve degrees, thirty-two minutes, six seconds, south...". I would also prefer to have the comma between latitude & longitude. —Michael Z. 2005-03-29 22:37 Z
March 21 revision of Template:Coor dmsTemplate:Coor dms now includes a between the numbers. In infoboxes and, e.g. on Shorewood-Tower_Hills-Harbert, Michigan this can take up a lot of space. Further, it appears that the isn't rendered if the template is part of a wiki-| table (It works with wiki-<td> tables). To save space, I'd be in favor of returning to the previous format. -- User:Docu padding with zerosYou, in your examples, padded zeros in your entry for the minutes and seconds. But that is not a feature of the template, at least not yet. You also did not pad a second zero in the longitude degrees. Gene Nygaard 12:04, 14 Feb 2005 (UTC)
links pageForget about the format of the coordinates, let's talk about the link. I clicked on the coordinates at the Winnipeg, Manitoba article, and it took me to a confusing page that gave me a list of unessecary options including finding the location in Norway, United States, and the United Kingdom, despite the fact that Winnipeg is in none of those countries. This page should only have links to global maps... or better: clicking on the coordinates always takes you to the same maps site. --Munchkinguy 23:17, 22 Mar 2005 (UTC)
Error checking on entryIs there any way the template can do some error checking of range of numbers, as well as convert them from text to numbers to aid in making consistent padding of the numbers? I'd like to see something like the "Did not parse" errors in TEX entry. Gene Nygaard 12:04, 14 Feb 2005 (UTC)
Error in off-Wikipedia map sources pageYou have your minutes and seconds symbols reversed. Gene Nygaard 12:04, 14 Feb 2005 (UTC)
Format for markup entryThe current quarter hemisphere thing was simply a hack out of necessity in the inital implementation (with no script, just doing Mapquest). This is no longer required, so we can design a better template. I do believe that the formatting for the article itself should be done via the template alone, though. Perhaps the following syntax is more suitable: {{coord|48|46|36.48|N|121|48|51.84|W|}} Which becomes: 48°46′36.48″N 121°48′51.84″W / 48.7768000°N 121.8144000°W With the current template mechanism, the dms is needed, because there is no conditional mechanism in the templates. I have allowed for yet another argument, which is an optional map scale. This will of course not appear in the article, but is a useful parameter for many map resources (so that the initial map view shows the entiry country, island or whatever). Comments invited. -- Egil 13:03, 14 Feb 2005 (UTC)
{{coord|N48|W121}}
Chinasaur's suggestionsGreat to see someone finally scripting this! I really look forward to seeing this incorporated into MW. One thing I wonder is how you envision this working in conjunction with the templates I have been working on (geolinks-US-streetscale etc.). I can imagine your stuff replacing the old system entirely. On the otherhand, geolinks may be a good way to provide more selective "suggested links" that are a little less promiscuous than the link page you are providing. Something to think about. For the time being, let's try to coordinate (no pun intended). The geolinks templates have been added to RamMan's automatic city updates, so I assume they are pretty well accepted. If/when we ultimately switch over to your style templates we can hopefully get the city bot to help with that too.
Dealing with scaleI was just going to suggest a scale argument but I see you're working on it. Implementing this is going to be tricky though. Perhaps you would consider the model we have used for geolinks: "cityscale", "buildingscale", etc. The named scales is (I hope) an easier way for editors to remember what size they really want. The tricky part of course is translating this into the right "zoom" arguments for any particular web page; as you know they mostly use their own specific formats (i.e. zoom=5 on mapquest means something totally different from s=5 on terraserver). One thing that I think would work would be to use a "cityscale" style argument to your script as a string for another template name. I'm not sure if I can explain this clearly off the cuff, but here goes: imagine I pass in "city" as the final argument to one of your templates. This then becomes the value for {{{scale}}} on your special page. You then link to mapquest using (psuedocode): mapquest.com/?lat={{{lat}}}&lon={{{lon}}}&zoom={{mqscale-{{{scale}}}}} and to terraserver using (psuedocode): terraserver.com/?lat={{{lat}}}&lon={{{lon}}}&zoom={{tsscale-{{{scale}}}}} I believe this should work and result in the template {{mqscale-city}} and {{tsscale-city}} being loaded in as the scale arguments. My mind gets kind of boggled trying to remember MW's rules for loading templates but for an off-the-cuff trial see User:Chinasaur/Sandbox. Here I've used PAGENAME as a standin for your special variables since I believe they behave in similar ways. As you can see, the code correctly requests a template whose name depends on the value of PAGENAME. This approach will cause a proliferation of templates for all the different scales (city, county, building, street, hood, or whatever you decide on) and for all the different webpages, but I think that's okay, and this way it's transparent to editors and easily tweakable.
Country filteringMy only other suggestion for now is that you could use the script to filter what country is being looked up. Since so many resources only work for US locations, it would be nice if the script first determined if the coordinates were US, then forwards you to an appropriate page within your demo server. For non-US locations, the script forwards you to a similar site without the US links. I'm not sure how the loading between the editable links page and the special page with the variable substitutions works, but I'm guessing that it would be possible to set this up so that all the US links are in a separate template that is just called from the US specific special page. This way it is transparent to editors who want to add US specific links. In fact, this way you could avoid creating more than one special page by having the script initialize the argument {{{country-specific-template-name}}} to the special page according to its parsing of the coordinates and then have the universal special page call that template ({{{{{country-specific-template-name}}}}}). This is assuming that the double substitution discussed above does indeed work. If this mechanism worked, you could use it to generate country specific links for as many countries as you have time to delineate coordinate rules for. Anyway, as you can see, I'm full of enthusiasm for your work and also full of (hopefully useful) suggestions. I feel like this format is not the easiest way to bounce ideas off each other. If you're open to the idea, maybe we should get in touch by email or phone. Let me know on my talk page if this is cool and we'll work something out. Also I can help out with coding if (AND ONLY IF!) I get a little more time in the next few months. I'm a reasonable php hacker (I assume this is all php?). Nice work! --Chinasaur 00:32, 18 Feb 2005 (UTC) P.S., you might be interested in my stillborn wikibook Wikibooks:GET--Chinasaur
P.P.S., what about a variable for labeling markers where appropriate (e.g. for the tigermaps US census sites). You probably don't want to add more baggage to the editor end of the templates. What about adding PAGENAME into the templates though? After parsing with the script (to take off disambiguation in parens, etc.), this would probably work well for a {{{mlabel}}} variable!--Chinasaur
|
Portal di Ensiklopedia Dunia