items_fields: Utility functions

Description Usage Arguments Value Examples

View source: R/utils.R

Description

This function returns the subfields of the feature field of a STACItemCollection object.

Usage

1

Arguments

items

a STACItemCollection object representing the result of /stac/search, /collections/{collectionId}/items.

...

a named way to provide field names to get the subfields values from the RSTACDocument objects.

field

a character with the names of the field to get the subfields values from the RSTACDocument objects.

Value

A character with the subfields of the feature field.

Examples

1
2
3
4
5
6
7
# STACItemCollection object
stac_item <- stac("https://brazildatacube.dpi.inpe.br/stac/") %>%
 stac_search(collections = "CB4_64_16D_STK-1", limit = 10,
        datetime = "2017-08-01/2018-03-01") %>%
 get_request()

stac_item %>% items_fields(field = c("properties"))

rstac documentation built on July 10, 2021, 5:08 p.m.