SDA_query_features: Soil Data Access Spatial Query

Description Usage Arguments Details Value Note Author(s)

View source: R/SDA_query.R

Description

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

Usage

1
2
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

Details

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

Value

A dataframe containing the results.

Note

This function requires the 'httr', 'jsonlite', 'XML', and 'rgeos' packages

Author(s)

D.E. Beaudette


soilDB documentation built on Jan. 12, 2018, 1:05 a.m.