-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error debugging basic geometries #346
Comments
Which version of ArchGDAL does this still work on? Or could it be due to the new GDAL 3.6 build that comes with GDAL.jl v1.5, which was released recently? |
Just to clarify, it works fine in execution mode. It is in debug mode that it fails. I don't recall running debug mode before, so maybe this never worked. I am using the latest stable release of the packages. |
This attempt to debug the function came up because code that used to work fine in the previous version of ArchGDAL.jl stopped working. In particular, this geometry conversion is not working anymore: The function hangs whenever I try to convert simple points in this data set. You can reproduce with the master branch:
using GeoTables
# hangs with ArchGDAL v0.9.3 and GeoInterface v1.0.1
GeoTables.load("test1.gpkg") |
Ok for this hang it's still useful to know the extra information I asked for, to know whether it's ArchGDAL.jl or the GDAL build we ship. |
From the output of
|
Can you try GDAL.jl v1.4, and otherwise the previous ArchGDAL release? |
Tried with GDAL.jl v1.4 and the same error occurs. Can you reproduce or is it only in my machine? |
Also happens with ArchGDAL.jl v0.8 (the previous version) if I replace GI.geomtrait (which didn't exist) by GI.coordinates. |
I see the same thing I think, though a bit of a different stacktrace. I see you removed the test file, so here is a permalink: https://github.com/JuliaEarth/GeoTables.jl/blob/a7353e5d5719f09f5a1ba192fdc640adeadbf52b/test/data/test1.gpkg import ArchGDAL as AG
import GeoTables
data = AG.read("test1.gpkg")
table = AG.getlayer(data, 0)
GeoTables.GeoTable(table) This works fine if I put a semicolon after the last line to stop it from
This looks like an issue in the enum mapping from ArchGDAL to GDAL, pointing to this line. It's a bit hard to follow though. The debug issue might be the same, since the debugger tries to show more things. |
Paste the following code inside a function and execute in debug mode in VSCode:
Step through the code until the line GI.geomtrait and the following cryptic error will be shown:
The dataset to reproduce the error is here: https://github.com/JuliaEarth/GeoTables.jl/blob/master/test/data/test1.gpkg
The code above used to work just fine in previous versions of ArchGDAL.jl
The text was updated successfully, but these errors were encountered: