I have a list of data with geometry column in the format of 0x6A7F0000010D340AF
.
I wand to retrieve the latitude and longitude in the range of (-90,90)
and (-180,180)
. I have tried the following code:
select geom.STY as lat, geom.STX as lon
from Table;
However, it returns values in the range of 5058449.313
for latitude and longitude.
Any idea what I should do? Can I also use Python to do the conversion? How can I get the CRS
from the geom?
Update-Solution
Assuming that I know the CRS
, I can use this code to get the latitude
and longitude
from the (Y,X)
retrieved from
select geom.STY as lat, geom.STX as lon
from Table;