Skip to content

Remove the custom definition of == on 2 rasters? #887

Open
@tiemvanderdeure

Description

@tiemvanderdeure

Right now == on two Rasters has a custom definition, so that

da1 = rand(X(1:10))
da2 = rand(Y(1:10))

da1 == da2 # returns false
Raster(da1) == Raster(da2) # errors with DimensionMismatch

This is because of this definition

Rasters.jl/src/array.jl

Lines 69 to 71 in 177d89f

function Base.:(==)(A::AbstractRaster{T,N}, B::AbstractRaster{T,N}) where {T,N}
size(A) == size(B) && all(A .== B)
end

Which hasn't been touched for 4 years - should we just remove it on the next breaking release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions