Learn R Programming

soilDB (version 2.5)

SDA_query_features: Soil Data Access Spatial Query

Description

Iterate over Spatial* object features and submit spatial queries to the SDA web-service.

Usage

SDA_query_features(x, id='pedon_id')
processSDA_WKT(d, g='geom', p4s='+proj=longlat +datum=WGS84')

Arguments

x

a Spatial* object with more than 1 feature, any defined coordinate system

id

the column name in x that contains a unique ID for each feature

d

data.frame returned by SDA_query, containing WKT representation of geometry

g

name of column in d containing WKT geometry

p4s

PROJ4 CRS defs

Value

A dataframe containing the results.

Details

The SDA website can be found at http://sdmdataaccess.nrcs.usda.gov. See the SDA Tutorial for detailed examples.