-
-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spain: flipped lat/lon coordinates #6222
Comments
I wonder if you could grab the original data and see if it's flipped as well? There was an issue when we updated our data processing software a while back where they changed the default ordering of lat/lon. I thought we had fixed this at that point. |
Hi,
So let's try to convert SELECT ST_AsGeoJSON(ST_Transform(ST_SetSRID(ST_MakePoint(718686.87, 4280777.71), 25829), 4326)); And the result is located in Spain: {"type":"Point","coordinates":[-6.48706945435077,38.6485910284446]} Just to check with another do tool, epsg.io gives me the same result. So your data in cache seems to be correct 👍. |
I was validating my data and saw a big difference in Spain, 14M of addresses was no longer located in Spain.
So I imported all data from Spain into QGIS and here is the result:
In purple the polygon of Spain flipped thanks to ST_FlipCoordinates.
As you can see, affected data are:
es/25829
,es/25830
,es/25831
andes/32628
. You can easily do the check with a random line and geojson.ioThe text was updated successfully, but these errors were encountered: