View source: R/SILOFindSitesByShapefile.R
| SILOSitesfromPolygon | R Documentation | 
Find SILO sites within a polygon
SILOSitesfromPolygon(shpFile, ssl = FALSE, buffer = 0)
| shpFile | location to a shapefile to search within for SILO sites | 
| ssl | See SILODownload, if true if true sets ssl_cipher_list="RC4-SHA" for httr::GET() | 
| buffer | distance in km to buffer the shapefile to look for sites outside the catchment The buffer distance is approximate for a couple of reasons: the shapefile is projected to match SILO site coordinates, WGS84 and sf::st_buffer does not correctly buffer longitude/latitude data. sdaf Also the input distance in km is converted to degrees using the conversion at the equator of 0.008. | 
a table of site information including site numbers found within the polygon
## Not run: 
Sites=SILOSitesfromPolygon("path/to/shapefile.shp")
SILODownload(Sites$Number,
path=tempdir(),
startdate="20180101",enddate="20200101")
X<-SILOLoad(Sites$Number,path=tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.