Take the velox raster and crop the velox objects down to the area where the SPDF points are
crop_raster_to_country(raster_list, spdf, country_iso, data_directory)
The original list of raster before converting to velox.
The country iso code to indicate which country the GPS points are in to know how to trim the data
raster cropped to the area where soil points are so that we don't care the raw soil rasters through the extract process.
I've included an if statement in the event there's only one requested soil parameter. There must be a cleaner way to do this.
crop_raster_to_country("ph_soil_raster.tif", "KEN", "/path/to/directory")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.