-
Notifications
You must be signed in to change notification settings - Fork 46
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
axis mapping managment #474
Comments
The |
Hi @kylebarron and thank you. Please help me understand a little better. In my sample file, if I run ogrinfo I have "Data axis to CRS axis mapping: 2,1", and I read multipoint in lon, lat (as this one The core issue is that the data appears to be presented with longitude first and latitude second, within the
If this analysis of mine is correct, could it not be done automatically so that whenever duckdb reads (via gdal) that Thank you |
I confirm it is correct. OGRSpatialReference::GetDataAxisToSRSAxisMapping() can be used to establish the correspondance between the coordinate order in OGRGeometry and the axis order of the official CRS definition. |
Okay, so I think it would be very important to implement its use here in duckdb spatial. Do I open a feature request? Thank you all |
Hi,
I have this sample input shapefile: test.shp.zip.
It's in EPSG:4326, whit this extent
Extent: (16.555051, 40.818774) - (16.559098, 40.827021)
.I need to convert it in EPSG:32633 and I run
If I do it, I have these completely wrong coordinates:
I couldn't understand why, and then I thought there might be a problem with axis management. In this input file I have
Data axis to CRS axis mapping: 2,1
.If I add
always_xy := true
in myST_TRANSFORM
function I have the right coordinatesBut wouldn't it be more correct for duckdb to handle the correct mapping of x and y by default on its own, without having to specify it?
Thank you
The text was updated successfully, but these errors were encountered: