Skip to content

Conversation

@dbaston
Copy link
Contributor

@dbaston dbaston commented Jun 16, 2020

Avoid decay into RasterLayer and subsequent failure on attempt to access
"layers" slot.

Includes test case.

Avoid decay into RasterLayer and subsequent failure on attempt to access
"layers" slot.

Includes test case.
@rhijmans rhijmans merged commit d63b497 into rspatial:master Jun 16, 2020
@rhijmans
Copy link
Member

drop=TRUE is my nemesis

dbaston added a commit to isciences/exactextractr that referenced this pull request Jun 17, 2020
It turns out that pulling a RasterLayer out of a RasterBrick using the
subset method is very time-consuming. A much faster better way is to use
getValuesBlock on the RasterStack or RasterBrick directly.

A bug in the raster package prevents using this improvement; a fix is
proposed at rspatial/raster#134
dbaston added a commit to dbaston/exactextract that referenced this pull request May 16, 2024
It turns out that pulling a RasterLayer out of a RasterBrick using the
subset method is very time-consuming. A much faster better way is to use
getValuesBlock on the RasterStack or RasterBrick directly.

A bug in the raster package prevents using this improvement; a fix is
proposed at rspatial/raster#134
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants