GDAL.jl icon indicating copy to clipboard operation
GDAL.jl copied to clipboard

GeoParquet driver broken

Open visr opened this issue 2 years ago • 3 comments

Since https://github.com/JuliaPackaging/Yggdrasil/pull/5848, GDAL_jll comes with (Geo)Arrow and (Geo)Parquet support. Loading GeoArrow files seems to work fine, but GeoParquet is only partially working.

Here is a minimal reproducer. The dataset opens fine, we can get the only layer and ask for it's name, but as soon as we try to get the first feature, it crashes Julia with an EXCEPTION_ACCESS_VIOLATION and no further details.

using GDAL

path = "/vsicurl/https://github.com/opengeospatial/geoparquet/raw/v1.0.0-beta.1/examples/example.parquet"
dataset = GDAL.gdalopenex(path, GDAL.GDAL_OF_VECTOR, C_NULL, C_NULL, C_NULL)
layer = GDAL.gdaldatasetgetlayer(dataset, 0)
GDAL.ogr_l_getname(layer)  # -> "example"
feature = GDAL.ogr_l_getnextfeature(layer)  # segfault

visr avatar Feb 01 '23 20:02 visr