Curious as to why the following only returns a numeric vector with row and column information rather than a cropped raster:

ras <- velox("dir.tif")
cty <- st_read("cty.shp")
ras <- ras$crop(cty) # they are in the same projection

Rather than being a velox object, the final ras is numeric:

   rows columns 
   5003    5087 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.