-
Notifications
You must be signed in to change notification settings - Fork 3
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
Swapped lat long #10
Swapped lat long #10
Conversation
Awesome, glad to see a real fix. Here's the issue I opened earlier this year https://github.com/CesiumGS/asset-pipeline/issues/1528 I was on the right track, but never tried that flag. |
@shehzan10 you know more about CityGML. Is there a reason that the incorrect ordering was specified on purpose? Should it be an option? |
@tfili We used the previous option based on the GDAL documentation. If you are confident that the new flag is the right one to use to always return It wasn't so much that the incorrect ordering was on purpose. The EPSG:6697 CRS is the only one I've seen that uses |
Looking into it a bit more, it seems like CityGML generally expects traditional GIS order. Looking at https://gdal.org/en/latest/drivers/vector/gml.html it is what GDAL defaults to when loading CityGML. I think the best option is to use an env var for us to swap it if needed for our tilesets. We may want to potentially expose it to customers at some point but I don't think there has been a need so far. |
@keyboardspecialist This is ready for review. |
I'm getting a ton of test failures on my local linux build (release and debug)
|
@keyboardspecialist The tests seem to be passing here. Did you update submodules? |
@tfili For some reason my tests are failing when building through docker. Using my system's gcc works fine. May be long overdue for a system clean. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Tests are passing for me now.
@keyboardspecialist
I had to do this for some japan data too so I hijacked your branch. We should try and detect this but for now instead of using a branch, I think we should just add an envvar to the released version so we can use it when we need to.I thinks I fixed it for real. See https://gdal.org/en/latest/tutorials/osr_api_tut.html#crs-and-axis-order
We need to test his a bunch before we can merge. I'll create a asset-pipeline PR with it so we can run some tests.
Testing
./citygmlswayzetests
in theasset-pipeline
update-libcitygml
branch - there was a test added to sets the env varCITYGML_USE_SRS_ORDERING=1 ./citygmlswayzetests