[postgis-users] lat,lon or lon,lat in WGS84 WKT

Willy-Bas Loos willybas at gmail.com
Tue Nov 17 07:09:21 PST 2015


Hi,

I have a couple of questions about the order of lattitude and longitude in
WKT representations of geometries:

   1. Is there an objective reference that states in what order WGS84
   (geographic) coordinates should be represented in a WKT? Is it lon, lat
   (because of x,y) or lat,lon (because it's geodetic) ?
   2. Does postgis use the correct representation?
   3. Is there a way to switch lat and lon for a polygon when representing
   as WKT? All i think of is looping through all points, switching x and y and
   then returning astext(g)

Cheers,

-- 
Willy-Bas Loos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20151117/5274d70d/attachment.html>


More information about the postgis-users mailing list