Skip to content
Prev 19351 / 29559 Next

problem with extract() raster package using weight=TRUE

Umberto,

The work-around is to assure that the CRS are the same:

projection(regioni) <- projection(t500)

You should of course only do that when the projections are in fact the
same, as in this case. The problem is caused by sp::identicalCRS that
compares the verbatim, but not the semantic representation of the CRS
(and, therefore, perhaps should give a warning rather than an error?).

Robert
On Tue, Sep 17, 2013 at 5:10 AM, up <u.p at operamail.com> wrote: