[postgis-users] ST_Transform troubles

Mike Toews mwtoews at gmail.com
Mon Jun 27 03:44:08 PDT 2011

On 27 June 2011 19:54, Frans Knibbe <frans.knibbe at geodan.nl> wrote:
> To me the argument "We are ignoring the standard because everyone else is
> doing the same" comes across as rather weak. The whole point of standards is
> that you comply with them, otherwise they are useless. I fully agree that
> having different axis orders is a big nuisance. But not complying with
> standards can be a nuisance too.

I think it is well established among most (all?) spatial DBs that
comply with OGC Standards that the coordinate order is Cartesian: "X
Y" or "Longitude Latitude". If there is any issues with this, then it
is with the OGC Standards you disagree with. Mind you, this is only an
internal ordering in WKB, that you may occasionally see in WKT. Both
of these are computer markup languages, not designed to look pretty in
a report. However, if you do want to make the coordinate look more
human readable, it is rather simple to write your own function to
report coordinates in any style you like.

An interesting case study of following OGC Standards for coordinate
ordering is with MS SQL Server 2008 Spatial's GEOGRAPHY type. When the
preview was released, coordinate order of WKT was "Lat Lon", but was
reversed to "Lon Lat" for the subsequent preview and final release.
See the following links for more:


More information about the postgis-users mailing list