You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dim field of a lookup doesn't inherit the supertype of the dimension (XDim, etc), but defaults to Rasters.AutoDim(). reproject dispatches on this field, So reproject will silently not do anything and return the same values - but with a different crs associated!
using Rasters
import Rasters: XDim
xdim =X(Projected(1:10; crs =EPSG(4326)))
xdim isa XDim # truelookup(xdim).dim isa XDim # falselookup(reproject(xdim; crs =EPSG(3857))).data ==lookup(xdim).data # true!
I get that when reprojecting we want all dimensions that are not x or y to keep the same values, and this is not a problem after constructing a Raster using the dimension - but maybe there's a way to change the dispatch on the internal reproject methods so this doesn't happen?
The text was updated successfully, but these errors were encountered:
The
dim
field of a lookup doesn't inherit the supertype of the dimension (XDim, etc), but defaults toRasters.AutoDim()
.reproject
dispatches on this field, So reproject will silently not do anything and return the same values - but with a different crs associated!I get that when reprojecting we want all dimensions that are not x or y to keep the same values, and this is not a problem after constructing a Raster using the dimension - but maybe there's a way to change the dispatch on the internal reproject methods so this doesn't happen?
The text was updated successfully, but these errors were encountered: