Learn R Programming

soilDB (version 2.5)

seriesExtent: Get/Display Soil Series Extent

Description

Get or display the spatial extent of a named soil series using the Series Extent Explorer.

Usage

seriesExtent(s, timeout=60)

Arguments

s

the soil series name

timeout

time that we are willing to wait for a response, in seconds

Value

when calling seriesExtent, a SpatialPolygonsDataFrame object

Details

Soil series extent data are downloaded from a static cache of GeoJSON files on SoilWeb servers. Cached data are typically updated annually.

References

http://casoilresource.lawr.ucdavis.edu/see

Examples

Run this code
# NOT RUN {
if(requireNamespace("curl") &
    curl::has_internet()) {
    
    # fetch series extent for the 'Amador' soil series
    s <- seriesExtent('amador')
    
    # plot SpatialPolygonsDataFrame
    if(require(sp))
      plot(s)
}
# }

Run the code above in your browser using DataLab