Grumman-581 wrote:
"Chris W" wrote in message
news:HAHKg.9416$JR5.1674@dukeread11...
If you have some time and would like to try it, I want
to know if anyone can break it. If you do, please send
me the data you used to break it, so I can figure out
why it broke and fix it.
n234521.123
w954521.123
using the ddmmss.sss format for the longitude, it chokes on two digit
longitudes... It does work if you put a leading zero on the longitude or if
it is a 3-digit one...
Well let's think about this.
What if it is 5degrees do you want to do it like this..... dmm.mmmmm?
How do could the system possibly distinguish that from ddd.ddddd?
Obviously it can not. Then what about say 1 degree 3 minutes dm.mmmm?
Just move evidence of why that can't be done. If you want a format with
out any kind of separator between the degrees minutes and seconds all
fields have to be of fixed width and since longitude goes from -180 to +
180 you need to have it be dddmmss.sss or dddmmm.mmmm And since
Latitude is -90 to +90 ddmmss.ss or ddmm.mmmm is the only way to go. It
is my understanding the ddmmss.ss or ddmm.mmmmm for Latitude and
dddmmss.ss or dddmm.mmmm for longitude are standard formats in the GIS
software industry. However I would think since the web site this code
is for is not targeted at GIS professionals, most users will have
something separating the degrees minutes and seconds like dd mm ss.ss
--
Chris W
KE5GIX
Gift Giving Made Easy
Get the gifts you want &
give the gifts they want
One stop wish list for any gift,
from anywhere, for any occasion!
http://thewishzone.com