hms>
ifMatch -pattern /S/ -string %s -then {echo -{sum {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 0} {divide {sum {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 1} {divide {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 2} 60}} 60}}} -else {ifMatch -pattern /W/ -string %s -then {echo -{sum {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 0} {divide {sum {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 1} {divide {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 2} 60}} 60}}} -else {sum {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 0} {divide {sum {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 1} {divide {idx {explode {strReplace -find %22 -replace , -string {strReplace -find %27 -replace , -string {strReplace -find %C2%B0 -replace , -string {change {strReplace -find " " -replace , -string %s} -method urlenc -simple yes}}}}} -idx 2} 60}} 60}}}
NAME
hms> - converts the latitude or longitude coordinate from degrees-
minutes-seconds to decimal degrees.
SYNOPSIS
hms> DD°MM'SS"[N/S/E/W]
DESCRIPTION
The hms> command will converts a latitude or longitude coordinate
that is in degrees-minutes-seconds format to signed decimal degrees.
While the N/S/E/W suffix is optional, please note that it will NOT
return a negative sign without it.
EXAMPLES
Example: hms> 47°49'05.90796"
Result: 47.818307766667
Example: hms> 47°49'05.90796"N
Result: 47.818307766667
Example: hms> 102°26'58.48232"W
Result: -102.44957842222
AUTHOR
Paul M. Boren
pmboren AT gmail DOT com
65 uses
-
Created 2010-05-20 06:48:50
-
Last used
2011-06-03 15:22:55