D 2022-05-02T18:56:43.866 J foundin 4.3.0 J icomment Dear\sall,\r\n\r\nthe\s`AsGML()`\sfunction\sis\sreturning\scoordinates\swith\sflipped\saxes.\sIn\sthe\sexample\sbelow\sthe\sfunction\sis\sapplied\sto\sa\sGeoPackage\stable\scontaining\sgeometries\sreferring\sto\sthe\sWGS84\sdatum\sensemble:\r\n\r\n```\r\n$\ssqlite3\spoint.gpkg\r\nSQLite\sversion\s3.36.0\s2021-10-26\s10:02:50\r\nEnter\s".help"\sfor\susage\shints.\r\nsqlite>\sSELECT\sload_extension("mod_spatialite");\r\n\r\nsqlite>\sselect\sAsGML(CastAutomagic(geom))\sfrom\spoint;\r\n-150,1\r\nsqlite>\s.exit\r\n```\r\n\r\nTransforming\sthe\sfile\sto\sGML\swith\sOGR\sresults\sin\scorrectly\sencoded\sgeometries:\r\n\r\n```\r\n$\sogr2ogr\s-of\sGML\spoint.gml\spoint.gpkg\r\n$\scat\spoint.gml\s|\sgrep\sgml:Point\r\n\s\s\s\s\s\s1\s-150\r\n```\r\n\r\nAlso\sof\snote\sthe\sabsence\sof\sa\sURN\sin\sthe\s`srsName`\sproperty\sreturned\sby\s`AsGML()`,\sbut\sthe\scritical\saspect\sis\sindeed\sthe\sswapped\saxes\sorder.\sThe\sresult\sis\sthe\ssame\swhether\sGML\sversion\s2\sor\sversion\s3\sare\srequested.\r\n\r\nThank\syou\sfor\sreading. J login anonymous J mimetype text/x-markdown J private_contact 11c5b2542d7537952b3839b70a24be880bc763bd J severity Critical J status Open J type Code_Defect K ace26679a184902f550e70ef1b387864bf1080ec U anonymous Z 8c1056d5d4c3d1924589afe04fecc056