Skip to content

Commit

Permalink
Cleanup unused Raster call in warp (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz authored Dec 13, 2024
1 parent bd958bb commit 4fdfee9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/RastersArchGDALExt/warp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function _warp(A::AbstractRaster, flags::Dict; filename=nothing, suffix="", kw..
tempfile = isnothing(filename) ? nothing : tempname() * ".tif"
warp_kw = isnothing(filename) || filename == "/vsimem/tmp" ? () : (; dest=filename)
out = AG.Dataset(A1; filename=tempfile, kw...) do dataset
rds = Raster(dataset)
AG.gdalwarp([dataset], flagvect; warp_kw...) do warped
# Read the raster lazily, dropping Band if there is none in `A`
raster = Raster(warped; lazy=true, dropband=!hasdim(A, Band()), name = name(A))
Expand Down

0 comments on commit 4fdfee9

Please sign in to comment.