Page 1 of 1

Coordinate system bug?

Posted: Tue Jan 17, 2023 7:39 pm
by Sky
Hi,

I'd like you to check if "Y, X" coordinates are correct or it should be swapped.
I think the correct is "X, Y" for SNG/MGI 1901 coordinate system.

Thanks.

Re: Coordinate system bug?

Posted: Tue Jan 17, 2023 9:47 pm
by Psyberia-Support
Hi,
If you're talking about "MGI 1901 / Slovenia Grid" (https://epsg.io/8686) then the order is reported as Y,X (https://epsg.io/4498-cs).

Re: Coordinate system bug?

Posted: Wed Jan 18, 2023 10:13 am
by Sky
Hi,

if i choose Ljubljana, the capital of Slovenia:

"epsg.io/map#srs=8686-8688&x=461336.518879&y=5100982.166028&z=13&layer=streets"

from link we can se that "X"=461336.518879 and "Y"=5100982.166028.

In application "Y"=461336.518879 and "X"=5100982.166028.

I think that it is a bug. X an Y are swapped. Please check again.

Thanks.

Re: Coordinate system bug?

Posted: Wed Jan 18, 2023 10:25 am
by Psyberia-Support
I know it's a bit technical but it's not the same "x" and "y", the above one from the map link are the one from the map, which uses it's own x and y.
MGI projected systems just call the first parameter (going to the east) "Y". It's just a naming scheme that the application also uses now.
If you look at the definition here, you'll see that the first number of the projected coordinates should be "Y" (uppercase, in meters, going east):

Code: Select all

AXIS["easting (Y)",east,ORDER[1],LENGTHUNIT["metre",1]]
and the second should be "X" (uppercase, in meters, going east):

Code: Select all

AXIS["northing (X)",north,ORDER[2],LENGTHUNIT["metre",1]]