<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi</div><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ok, so I _think_ I have the same issue as in <a href="https://trac.osgeo.org/postgis/ticket/4949" class="">https://trac.osgeo.org/postgis/ticket/4949</a> since Sweref99 is also an N/E-type projection, also the National Projection of Sweden. I tried updating to 3.1.3 but no success.</div><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""> <br class=""><div class="">I’m using ST_Transform to convert between lat/long and Sweref99 but the axis get reversed and a point in sweden ends up in the Indian ocean.</div><div class=""><br class=""></div><div class="">I’m using</div><div class="">"POSTGIS=""3.1.3 008d2db"" [EXTENSION] PGSQL=""130"" GEOS=""3.9.1-CAPI-1.14.2"" PROJ=""7.2.1"" LIBXML=""2.9.10"" LIBJSON=""0.15"" LIBPROTOBUF=""1.4.0"" WAGYU=""0.5.0 (Internal)"" TOPOLOGY"</div><div class=""><br class=""></div><div class="">Example</div><div class=""><br class=""></div><div class="">SELECT ST_AsText(ST_Transform('SRID=3006;POINT(675117 6580677)', 4326)) // Sweden National Museum</div><div class=""><br class=""></div><div class="">returns</div><div class=""><br class=""></div><div class="">"POINT(62.973291540292465 4.080735770719003)” // Somewhere east of Africa</div><div class=""><br class=""></div><div class="">That should be long/lat 18.078113 59.328482 according to <a href="http://epsg.io" class="">epsg.io</a></div><div class=""><br class=""></div><div class="">So am I missing something or is the fix in 3.1.3 not working or is this a similar problem but not the same thing?</div><div class=""><br class=""></div><div class="">Regards</div><div class="">David</div><div class=""><br class=""></div></div></body></html>