Re: [gdal-dev] GDAL 3.11 broke part of the Julia wrapper

2025-05-11 Thread Joaquim Manuel Freire Luís via gdal-dev
OK, with the help of your GDALGetRasterCount() hint I fixed it. The problem was that before #12124 Gdal.OGRGetDriverByName(Gdal.shortname(getdriver(dataset))) returned NULL for raster types, but from #12124 on it returns a non-NULL pointer, and the code

Re: [gdal-dev] GDAL 3.11 broke part of the Julia wrapper

2025-05-11 Thread Joaquim Manuel Freire Luís via gdal-dev
Sorry, forgot to pass the pointer. Also here it says the layer count is zero ccall((:GDALDatasetGetLayerCount, libgdal), Cint, (Ptr{Cvoid},), ds.ptr) 0 From: gdal-dev On Behalf Of Joaquim Manuel Freire Luís via gdal-dev Sent: Monday, May 12, 2025 12:34 AM To: Even Rouault ; gdal-dev Subject

Re: [gdal-dev] GDAL 3.11 broke part of the Julia wrapper

2025-05-11 Thread Joaquim Manuel Freire Luís via gdal-dev
Right. But I do that I get another error that I’m not sure how to interpret. It comes from some Julia internal ccall((:GDALGetRasterCount, libgdal), Cint, (Ptr{Cvoid},), ds) Internal Error: MethodError: no method matching unsafe_convert(::Type{Ptr{Nothing}}, ::GMT.Gdal.IDataset) From: Even Rou

Re: [gdal-dev] GDAL 3.11 broke part of the Julia wrapper

2025-05-11 Thread Even Rouault via gdal-dev
Le 12/05/2025 à 01:04, Joaquim Manuel Freire Luís via gdal-dev a écrit : Hi, I’m afraid this one is not going to be easy, and I don’t know how much help I can provide to find the issue. The think is that https://github.com/OSGeo/gdal/pull/12124 (which is a very big PR) broke my Julia wrappe

Re: [gdal-dev] GDAL 3.11 broke part of the Julia wrapper

2025-05-11 Thread Joaquim Manuel Freire Luís via gdal-dev
BTW, the "dataset" in previous message is created as ds = Gdal.create("", driver=getdriver("MEM"), width=width, height=height, nbands=size(GI,3), dtype=eltype(GI[1])) https://github.com/GenericMappingTools/GMT.jl/blob/master/src/gdal_utils.jl#L530 where "G" is a 2D grid and size(GI,3) = 1 and t

[gdal-dev] GDAL 3.11 broke part of the Julia wrapper

2025-05-11 Thread Joaquim Manuel Freire Luís via gdal-dev
Hi, I'm afraid this one is not going to be easy, and I don't know how much help I can provide to find the issue. The think is that https://github.com/OSGeo/gdal/pull/12124 (which is a very big PR) broke my Julia wrapper. For example, this used to write a png image but now it errors with julia