[OSM-newbies] Standard gps bounds notation?

Donald Campbell II donaciano2000 at gmail.com
Sun Feb 7 16:36:01 GMT 2010


Thanks for the reply Bill.  Guess I'm going to allow 4 arrangements so that
it can be easily used in scripts letting people specify their data in
whatever order they're used to.
Sort of like
-1 lat1 lon1 lat2 lon2
-2 lat1 lat2 lon1 lon2
-3 lon1 lat1 lon2 lat2
-4 lon1 lon2 lat1 lat2

luckily the longitude wrap-around occurs mostly in wet territory so
> you won't often if ever want to include lon +-180 or either pole
> inside your box.
>

Yeah that actually woke me up the other night when it came to me, there's no
trivial way to do this stuff.  There's probably buggy GPS code out there
that'll someday launch a missle when a sub gets parked in the wrong spot.
Considering that's right between Russia and the US it's a disturbing place
for buggy code to be swimming around.


> Only worth doing if you get a library, as doing this right and fast is
> non-trivial.
>

I'll leave the bounding box stuff as is, after I release if anyone needs
more detailed bounds they can add a shapefile option and the code it needs.
I'm just scratching my own itch here.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/newbies/attachments/20100207/6c331eb6/attachment.html>


More information about the newbies mailing list