Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

processSDA_WKT

Post-process WKT returned from SDA.


Description

This is a helper function, commonly used with SDA_query to extract WKT (well-known text) representation of geometry to an sp-class object.

Usage

processSDA_WKT(d, g = "geom", p4s = "+proj=longlat +datum=WGS84")

Arguments

d

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

g

name of column in d containing WKT geometry

p4s

PROJ4 CRS definition, typically GCS WGS84

Details

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

Value

A Spatial* object.

Note

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

Author(s)

D.E. Beaudette


soilDB

Soil Database Interface

v2.6.1
GPL (>= 3)
Authors
Dylan Beaudette [aut], Jay Skovlin [aut], Stephen Roecker [aut], Andrew Brown [aut, cre]
Initial release
2021-04-7

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.