get_trajectory: Get Trajectory

Description Usage Arguments Value Examples

View source: R/wlts.R

Description

Retrieves the land use and cover trajectories from the data collections given a location in space. The property result contains the feature identifier information, class, time, and the collection associated to the data item.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_trajectory(
  URL,
  latitude,
  longitude,
  collections = NULL,
  start_date = NULL,
  end_date = NULL,
  ...,
  query_info = FALSE
)

Arguments

URL

a character URL of the WLTS Service.

latitude

a numeric vector corresponding to latitude in WGS84 coordinate system.

longitude

a numeric vector corresponding to longitude in WGS84 coordinate system.

collections

a character vector of identifier (name) of collections delimited by comma.

start_date

a character with the start date to be search.

end_date

a character with the end date to be search.

...

a list Parameters to httr::GET function.

query_info

a bolean flag, if true query information is returned.

Value

a object of wlts class with query (if query_info is provided) and a tibble with trajectory requested.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
 wlts_bdc <- "https://brazildatacube.dpi.inpe.br/wlts/"

 get_trajectory(wlts_bdc,
                latitude = c(-12, -11.01),
                longitude = c(-54, -54),
                collections = "mapbiomas5_amazonia")

 # date interval
 get_trajectory(URL        = wlts_bdc,
               latitude    = c(-12, -11),
               longitude   = c(-54, -55),
               collections = "mapbiomas5_amazonia",
               start_date  = "2015-07-01",
               end_date    = "2017-07-01")

## End(Not run)

brazil-data-cube/rwlts documentation built on Oct. 11, 2021, 1:44 a.m.