- x
A vector of map unit keys (mukey
) or national map unit symbols (nationalmusym
) for mupolygon
, muline
or mupoint
; feature keys (featkey
) for featpoint
and featline
; legend keys (lkey
) or soil survey area symbols (areasymbol
) for sapolygon
geometry. If geom.src="mlrapolygon"
then x
refers to MLRARSYM
(major land resource area symbols).
- by.col
Column name containing map unit identifier "mukey"
, "nationalmusym"
, or "ecoclassid"
for geom.src
mupolygon
OR "areasymbol"
, "areaname"
, "mlraoffice"
, "mouagncyresp"
for geom.src
sapolygon
; default is determined by isTRUE(is.numeric(x))
for mukey
, featkey
or lkey
, using nationalmusym
or areasymbol
otherwise.
- method
geometry result type: "feature"
returns polygons, "bbox"
returns the bounding box of each polygon (via STEnvelope()
), "point"
returns a single point (via STPointOnSurface()
) within each polygon, "extent"
returns an aggregate bounding box (the extent of all polygons, geometry::EnvelopeAggregate()
) ), "convexhull"
(geometry::ConvexHullAggregate()
) returns the aggregate convex hull around all polygons, "union"
(geometry::UnionAggregate()
) and "collection"
(geometry::CollectionAggregate()
) return a MULTIPOLYGON
or a GEOMETRYCOLLECTION
, respectively, for each mukey
, nationalmusym
, or areasymbol
. In the case of the latter four aggregation methods, the groups for aggregation depend on by.col
(default by "mukey"
).
- geom.src
Either mupolygon
(map unit polygons), muline
(map unit lines), mupoint
(map unit points), featpoint
(feature points), featline
(feature lines), sapolygon
(soil survey area boundary polygons), or mlrapolygon
(major land resource area boundary polygons)
- db
Default: "SSURGO"
. When geom.src
is mupolygon
, use STATSGO polygon geometry instead of SSURGO by setting db = "STATSGO"
- add.fields
Column names from mapunit
or legend
table to add to result. Must specify parent table name as the prefix before column name e.g. mapunit.muname
.
- chunk.size
Number of values of x
to process per query. Necessary for large results. Default: 10
- verbose
Print messages?
- as_Spatial
Return sp classes? e.g. Spatial*DataFrame
. Default: FALSE
.