Talk:Geographic coordinate conversion
This article was nominated for deletion on 3 March 2014 (UTC). The result of the discussion was no consensus. |
This article is rated C-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||
|
Conversion code
editThe PHP code is too simple. For instance, given the input value "12.999992", the output is "12° 60.000". This is a classical rounding problem. Here are two Perl subroutines which get it right. The second uses Perl's automatic conversion between numbers and strings, a feature not available in all languages. I don't know PHP well enough to write it, but the Perl code below should be understandable by most programmers. –Peter J. Acklam 10:24, 22 Apr 2005 (UTC)
sub pretty_coord {
my $coord = abs shift; # decimal degrees
my $deg = int $coord; # compute degrees
my $min = 60 * ($coord - $deg); # compute minutes
if ($min >= 59.9995) { # if value will be rounded to 60.000
$min = 0; # set it to zero
$deg ++; # and increment degrees
}
return sprintf("%0.0f° %06.3f", $deg, $min);
};
sub pretty_coord {
my $coord = abs shift; # decimal degrees
my $deg = int $coord; # compute degrees
my $min = 60 * ($coord - $deg); # compute minutes
$min = sprintf '%.3f', $min; # round to three digits
if ($min == 60) { # if result is 60
$min = 0; # set it to zero
$deg ++; # and increment degrees
}
return sprintf("%0.0f° %06.3f", $deg, $min);
};
- I've added a new PHP function which I use as part of my website engine. Works well and is more robust & easier to follow than the original "pretty_coord()" example –Andrew N. Thu, 10 Aug 2006 05:04:42 +1000 (UTC)
- Is it more robust? It converts "12.5832" into "12:34:60", which should have been "12:35:00". It seems that your code is suffering from the exact same problem as the other code examples. –Peter J. Acklam 11:25, 8 May 2007 (UTC)
Legal ranges
editWhat are the ranges of degrees, minutes and seconds that are allowed to use? And also what are the allowed number systems for the numbers? What do you think about these values:
23° -45' 22.1"
-23° -45' -22.1"
-(23° 45' 22.1")
23° 61' 61"
23° 45.7' 22.1"
--80.122.38.210 05:28, 20 July 2006 (UTC)
WGS84-centric
editThis article pretends, that the world has only WGS84-coordinates. That's not true, there are others like Gauss-Krüger coordinate system, so the name of the article or the article should be changed. --141.52.232.84 (talk) 09:22, 8 October 2008 (UTC)
Complete rewrite
editWith this article slated for deletion and all the good howto information exported to Wikiversity, I decided to completely rewrite the article. The conversion between degrees-minutes-seconds and decimal degrees has been condensed into a short section, while all the other types of conversions of geographic coordinates, such as conversions among datums, has been added. It is still incomplete in many places (e.g., the datum conversion methods could be filled out with more formulas and application examples), but is hopefully a good start on this notable subject based on reliable sources. --Mark viking (talk) 22:16, 5 March 2014 (UTC)
Merge
editSomeone added a tag proposing a merge with Geographic coordinate system. I merged material on overlapping topics, but decided most of what's here is technical and probably uninteresting to readers of the other article. Also, much of what's here applies to geographic datum and I think merging all three articles would probably make the result too long. So, I'm leaving this article as a standalone, and noting in the intro that readers are expected to be familiar with the content of the other two articles (since I removed the context from this article for the sake of not repeating ourselves). -- Beland (talk) 09:42, 29 July 2015 (UTC)
- Your approach makes good sense to me. There is a lot of detail here that would not be interesting to someone just wanting to learn a little more about geographic coordinates and how to read maps. Thanks, --Mark viking (talk) 17:46, 29 July 2015 (UTC)
External links modified
editHello fellow Wikipedians,
I have just modified 2 external links on Geographic coordinate conversion. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
- Added archive https://web.archive.org/web/20140306001134/http://www.profsurv.com/magazine/article.aspx?i=1193 to http://www.profsurv.com/magazine/article.aspx?i=1193
- Added archive https://web.archive.org/web/20131008000112/http://digaohm.semar.gob.mx:80/imagenes/hidrografia/S60_Ed3Eng.pdf to http://digaohm.semar.gob.mx/imagenes/hidrografia/S60_Ed3Eng.pdf
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}}
(last update: 5 June 2024).
- If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
- If you found an error with any archives or the URLs themselves, you can fix them with this tool.
Cheers.—InternetArchiveBot (Report bug) 12:38, 9 January 2017 (UTC)
External links modified
editHello fellow Wikipedians,
I have just modified one external link on Geographic coordinate conversion. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
- Added
{{dead link}}
tag to http://www.ferris.edu/faculty/burtchr/papers/cartesian_to_geodetic.pdf - Added archive https://web.archive.org/web/20140306005736/http://info.ogp.org.uk/geodesy/guides/docs/G7-2.pdf to http://info.ogp.org.uk/geodesy/guides/docs/G7-2.pdf
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}}
(last update: 5 June 2024).
- If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
- If you found an error with any archives or the URLs themselves, you can fix them with this tool.
Cheers.—InternetArchiveBot (Report bug) 03:24, 13 October 2017 (UTC)
The application of Ferrari's solution
editIsn't the second step unnecessary? You already know e':
"It is assumed that geodetic parameters {\displaystyle \{a,b,e,e'\}} \{a,b,e,e'\} are known" — Preceding unsigned comment added by Whossname (talk • contribs) 11:11, 18 November 2017 (UTC)
External links modified (January 2018)
editHello fellow Wikipedians,
I have just modified one external link on Geographic coordinate conversion. Please take a moment to review my edit. If you have any questions, or need the bot to ignore the links, or the page altogether, please visit this simple FaQ for additional information. I made the following changes:
- Added archive https://web.archive.org/web/20160202201558/http://www.paulbolstad.net/4thedition/samplechaps/GISFundChap3.pdf to http://www.paulbolstad.net/4thedition/samplechaps/GISFundChap3.pdf
When you have finished reviewing my changes, you may follow the instructions on the template below to fix any issues with the URLs.
This message was posted before February 2018. After February 2018, "External links modified" talk page sections are no longer generated or monitored by InternetArchiveBot. No special action is required regarding these talk page notices, other than regular verification using the archive tool instructions below. Editors have permission to delete these "External links modified" talk page sections if they want to de-clutter talk pages, but see the RfC before doing mass systematic removals. This message is updated dynamically through the template {{source check}}
(last update: 5 June 2024).
- If you have discovered URLs which were erroneously considered dead by the bot, you can report them with this tool.
- If you found an error with any archives or the URLs themselves, you can fix them with this tool.
Cheers.—InternetArchiveBot (Report bug) 12:39, 22 January 2018 (UTC)
Potential external link addition:
editI am the creator of the site convertecef.com[1], which aims to help people make accurate conversations between ECEF and geodetic coordinates (in particular, we've found people make mistakes with the altitude term, causing unexpected or incorrect answers to be displayed). The site is free to use, though it does have a premium API option. By my understanding, as the creator of the site it would be a conflict of interest[2] to post the link directly in this article even if relevant. If another editor were willing to try it out and see if they think it is a worthwhile addition to the article I'd appreciate it. Otherwise any feedback would be welcome.
Thank you for your consideration.
Name of coordinates for ENU
editIn ENU to ECEF and in ECEF to ENU formulas, the ENU coordinates have been named x,y,z. I think that use of E,N,U letters would be more clear. Ginsi (talk) 17:37, 23 December 2023 (UTC)