From 8d5751294552b42abc5eef9e3b8c9d6ef4140632 Mon Sep 17 00:00:00 2001 From: Felix Cremer Date: Sun, 3 Mar 2024 02:58:17 +0100 Subject: [PATCH] Forward gdalinfo for RasterDataset (#415) --- src/raster/array.jl | 1 + test/test_array.jl | 1 + 2 files changed, 2 insertions(+) diff --git a/src/raster/array.jl b/src/raster/array.jl index 310371e4..b2eec3b6 100644 --- a/src/raster/array.jl +++ b/src/raster/array.jl @@ -60,6 +60,7 @@ for f in ( :metadata, :metadatadomainlist, :imread, + :gdalinfo, ) eval(:(function $(f)(x::RasterDataset, args...; kwargs...) return $(f)(x.ds, args...; kwargs...) diff --git a/test/test_array.jl b/test/test_array.jl index 7bb16d46..ecb3a47f 100644 --- a/test/test_array.jl +++ b/test/test_array.jl @@ -23,6 +23,7 @@ import ArchGDAL as AG @test AG.ngcp(ds) == 0 @test AG.write(ds, tempname()) == nothing @test AG.testcapability(ds, "ODsCCreateLayer") == false + @test startswith(AG.gdalinfo(ds), "Driver:") end @testset "DiskArray chunk interface" begin b = AG.getband(ds, 1)