Skip to content

Commit

Permalink
bugfix gdal tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Jul 29, 2023
1 parent 495653b commit 57abadf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sources/gdal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ gdalpath = maybedownload(url)
end

@testset "3d, with subsetting" begin
geoA2 = cat(gdalarray, gdalarray; dims=Band)[Y(4.224e6..4.226e6), X(-28492..0)]
geoA2 = cat(gdalarray, gdalarray; dims=Band(1:2))[Y(4.224e6..4.226e6), X(-28492..0)]
geoA2 = set(geoA2, Band => Band(1:2))
filename2 = tempname() * ".tif"
write(filename2, geoA2)
Expand Down Expand Up @@ -433,7 +433,7 @@ gdalpath = maybedownload(url)
am = AffineMap([60.0 20; 40 60], [first.(bounds(gdalarray, (X, Y)))...])
xap = Rasters.AffineProjected(am; crs=crs(gdalarray), paired_lookup=parent(lookup(gdalarray, X)))
yap = Rasters.AffineProjected(am; crs=crs(gdalarray), paired_lookup=parent(lookup(gdalarray, Y)))
twoband = cat(gdalarray, gdalarray; dims=Band)
twoband = cat(gdalarray, gdalarray; dims=Band(1:2))
affine_dims = DimensionalData.format((X(xap), Y(yap), Band(1:2)), twoband)
rotated = rebuild(twoband; dims=affine_dims);
@test occursin("Extent", sprint(show, MIME"text/plain"(), rotated))
Expand Down

0 comments on commit 57abadf

Please sign in to comment.