extract_feature: extract and summarize spatial data

View source: R/extract_spatial.R

extract_featureR Documentation

extract and summarize spatial data

Description

create metadata list from sp object

Usage

extract_feature(obj, out)

Arguments

obj

a spatial object from the sf package or sp package or a filepath that can be read in with read_data()

out

desired outputs; must align with valid internal function names Including out a character vector of summary values

Value

a list according to names in spatial lookup tables for tag conversion

Examples

library(sp)
Sr1 = Polygon(cbind(c(-89,-89.5,-89,-88.5,-89),c(42,42,44,44,42)))
Srs1 = Polygons(list(Sr1), "s1")
p = SpatialPolygons(list(Srs1), proj4string=CRS("+init=epsg:4326 +proj=longlat 
+datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0"))
extract_feature(p)

USGS-R/meddle documentation built on April 29, 2023, 11:50 a.m.