Welcome to MSDN Blogs Sign in | Join | Help

Syndication

News

Legalese: All postings are provided "AS IS" with no warranties, and confer no rights.
The Upcoming Geography Coordinate Order Swap---A FAQ

Hi Folks,

I just thought I'd take a few moments clarify the upcoming coordinate order swap for the geography type.  Here's a quick FAQ on the issue:

  • What exactly is the change?

    We are swapping the coordinate order for well-known text (WKT) and well-known binary (WKB) formats from latitude-longitude to longitude-latitude.  E.g., a point in the Seattle area might be represented in WKT as "POINT(44 -122)" in the current ordering; in the new order it will be "POINT(-122 44)".
  • Why are we making this change?

    Because of customer feedback.  While common practice almost universally uses latitude-longitude ordering, the de facto standard for WKT and WKB is to use a longitude-latitude order.  Making this change will make it much easier for customers to load WKT and WKB data into the geography type.
     
  • What about GML? 

    The standard paractice for GML is to use latitude-longitude ordering, and so no change will be made for GML.
  • Is the on-disk format changing?

    Nope.  Ths is just a matter of changing our routines that import and export data.  Nothing beyond those routines will change.
  • What about geometry?

    There is no change to the geometry type.  Geometry deals with objects on the plane, and is pretty agnostic about the coordinate order outsidfe of the STX and STY properties.
  • When is the swap happening?

    It is not the current Februrary CTP, but the team is working on it now.  Expect to see it in our next public release.

If there are more questions, I'll be happy to answer them here.

Cheers,
-Isaac

Minor Update: I originally got the WKT examples at the top wrong, placing commas between coordinates.  The examples have been updated to their correct, comma-free state.  (Thanks, Steven!)

Published Wednesday, March 05, 2008 5:24 PM by isaac

Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: The Upcoming Geography Coordinate Order Swap---A FAQ @ Thursday, March 06, 2008 12:50 AM

No questions. Thanks for the clarification.

adamw-manifold

# GETTING YOUR PROGRAMS READY FOR THE UPCOMING GEOGRAPHY COORDINATE ORDER SWAP @ Monday, March 24, 2008 11:45 AM

For those of you who have programs which work with November CTP (CTP-5) and February CTP (CTP-6) and

Spatial Ed

# re: The Upcoming Geography Coordinate Order Swap---A FAQ @ Monday, March 24, 2008 10:41 PM

"The standard paractice for GML is to use latitude-longitude ordering"

That's not exactly accurate.  GML uses the coordinate ordering specified in the coordinate reference system.  It's close-enough to true for most users though.

I applaud this change.  Requiring knowledge of CRS for the use cases of WKT/WKB is overkill.

Jason Birch

Leave a Comment

(required) 
required 
(required) 
Page view tracker