Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix stack keywords #470

Merged
merged 6 commits into from
Jul 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bugfix gdal tests
  • Loading branch information
rafaqz committed Jul 29, 2023
commit 57abadfeefbce426a2d22f2fe49dc143149100aa
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
Loading