Skip to content

Commit f10126e

Browse files
authored
Merge pull request #150 from brazil-data-cube/b-1.0.0
Release version 1.0.0
2 parents 8f405ba + 92d2a83 commit f10126e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2635
-3462
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
^doc$
1313
^Meta$
1414
^\.github$
15+
^revdep$
16+
^cran-comments\.md$

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ docs
4242
inst/doc
4343
/doc/
4444
/Meta/
45+
/revdep/
46+
cran-comments.md

DESCRIPTION

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: rstac
22
Title: Client Library for SpatioTemporal Asset Catalog
3-
Version: 0.9.2-5
3+
Version: 1.0.0
44
Authors@R:
55
c(person("Rolf", "Simoes",
66
email = "[email protected]",
@@ -22,32 +22,23 @@ License: MIT + file LICENSE
2222
URL: https://brazil-data-cube.github.io/rstac/
2323
BugReports: https://github.com/brazil-data-cube/rstac/issues
2424
Encoding: UTF-8
25-
RoxygenNote: 7.2.3
25+
RoxygenNote: 7.3.1
2626
Depends:
2727
R (>= 3.5)
2828
Imports:
29-
httr,
30-
crayon,
3129
utils,
30+
httr,
3231
jsonlite,
33-
lifecycle,
34-
magrittr
35-
Suggests:
36-
testthat,
32+
crayon,
3733
sf,
38-
knitr,
39-
rmarkdown,
4034
png,
4135
jpeg,
42-
tibble,
43-
dplyr,
44-
purrr,
45-
slider,
46-
leaflet,
47-
tmap,
48-
stars,
49-
ggplot2,
50-
geojsonsf
36+
grid,
37+
magrittr
38+
Suggests:
39+
lifecycle,
40+
testthat,
41+
knitr
5142
Collate:
5243
'cql2-expr-funs.R'
5344
'cql2-types.R'
@@ -65,10 +56,11 @@ Collate:
6556
'conformance-query.R'
6657
'collections-query.R'
6758
'deprec-funs.R'
68-
'document-funs.R'
59+
'doc-funs.R'
6960
'ext_filter.R'
7061
'ext_query.R'
7162
'extensions.R'
63+
'geom-funs.R'
7264
'items-funs.R'
7365
'items-utils.R'
7466
'items-query.R'
@@ -80,10 +72,11 @@ Collate:
8072
'request.R'
8173
'signatures.R'
8274
'stac-query.R'
83-
'stac_search.R'
84-
'stac_version.R'
75+
'search-query.R'
76+
'stac-funs.R'
77+
'static-funs.R'
8578
'url-utils.R'
8679
'utils.R'
8780
'rstac.R'
81+
'rstac-funs.R'
8882
Roxygen: list(markdown = TRUE)
89-
VignetteBuilder: knitr

NAMESPACE

Lines changed: 88 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
S3method(after_response,RSTACQuery)
43
S3method(after_response,collection_id)
54
S3method(after_response,collections)
65
S3method(after_response,conformance)
@@ -12,21 +11,19 @@ S3method(after_response,queryables)
1211
S3method(after_response,search)
1312
S3method(after_response,stac)
1413
S3method(as.character,cql2_filter)
15-
S3method(assets_download,STACItem)
16-
S3method(assets_download,STACItemCollection)
14+
S3method(as.character,cql2_spatial)
1715
S3method(assets_download,default)
18-
S3method(assets_filter,STACItem)
19-
S3method(assets_filter,STACItemCollection)
20-
S3method(assets_rename,STACItem)
21-
S3method(assets_rename,STACItemCollection)
16+
S3method(assets_download,doc_item)
17+
S3method(assets_download,doc_items)
2218
S3method(assets_rename,default)
23-
S3method(assets_select,STACItem)
24-
S3method(assets_select,STACItemCollection)
19+
S3method(assets_rename,doc_item)
20+
S3method(assets_rename,doc_items)
2521
S3method(assets_select,default)
26-
S3method(assets_url,STACItem)
27-
S3method(assets_url,STACItemCollection)
22+
S3method(assets_select,doc_item)
23+
S3method(assets_select,doc_items)
2824
S3method(assets_url,default)
29-
S3method(before_request,RSTACQuery)
25+
S3method(assets_url,doc_item)
26+
S3method(assets_url,doc_items)
3027
S3method(before_request,collection_id)
3128
S3method(before_request,collections)
3229
S3method(before_request,conformance)
@@ -37,76 +34,73 @@ S3method(before_request,items)
3734
S3method(before_request,queryables)
3835
S3method(before_request,search)
3936
S3method(before_request,stac)
40-
S3method(check_subclass,RSTACDocument)
41-
S3method(check_subclass,RSTACQuery)
42-
S3method(endpoint,RSTACQuery)
43-
S3method(endpoint,collection_id)
44-
S3method(endpoint,collections)
45-
S3method(endpoint,conformance)
46-
S3method(endpoint,ext_filter)
47-
S3method(endpoint,ext_query)
48-
S3method(endpoint,item_id)
49-
S3method(endpoint,items)
50-
S3method(endpoint,queryables)
51-
S3method(endpoint,search)
52-
S3method(endpoint,stac)
5337
S3method(get_spatial,GEOMETRYCOLLECTION)
5438
S3method(get_spatial,character)
5539
S3method(get_spatial,list)
5640
S3method(get_spatial,sf)
5741
S3method(get_spatial,sfc)
5842
S3method(get_spatial,sfg)
59-
S3method(has_assets,STACItem)
60-
S3method(has_assets,STACItemCollection)
6143
S3method(has_assets,default)
62-
S3method(items_as_sf,STACItem)
63-
S3method(items_as_sf,STACItemCollection)
64-
S3method(items_assets,STACItem)
65-
S3method(items_assets,STACItemCollection)
44+
S3method(has_assets,doc_item)
45+
S3method(has_assets,doc_items)
46+
S3method(items_as_sf,doc_item)
47+
S3method(items_as_sf,doc_items)
48+
S3method(items_as_sfc,doc_item)
49+
S3method(items_as_sfc,doc_items)
50+
S3method(items_as_tibble,doc_item)
51+
S3method(items_as_tibble,doc_items)
6652
S3method(items_assets,default)
67-
S3method(items_bbox,STACItem)
68-
S3method(items_bbox,STACItemCollection)
69-
S3method(items_bbox,default)
70-
S3method(items_compact,STACItemCollection)
71-
S3method(items_datetime,STACItem)
72-
S3method(items_datetime,STACItemCollection)
73-
S3method(items_datetime,default)
74-
S3method(items_fetch,STACItemCollection)
75-
S3method(items_fields,STACItem)
76-
S3method(items_fields,STACItemCollection)
77-
S3method(items_fields,default)
78-
S3method(items_filter,STACItemCollection)
79-
S3method(items_length,STACItem)
80-
S3method(items_length,STACItemCollection)
81-
S3method(items_length,default)
82-
S3method(items_matched,STACItem)
83-
S3method(items_matched,STACItemCollection)
84-
S3method(items_matched,default)
85-
S3method(items_next,STACItemCollection)
86-
S3method(items_reap,STACItem)
87-
S3method(items_reap,STACItemCollection)
53+
S3method(items_assets,doc_item)
54+
S3method(items_assets,doc_items)
55+
S3method(items_bbox,doc_item)
56+
S3method(items_bbox,doc_items)
57+
S3method(items_compact,doc_items)
58+
S3method(items_datetime,doc_item)
59+
S3method(items_datetime,doc_items)
60+
S3method(items_fetch,doc_items)
61+
S3method(items_fields,doc_item)
62+
S3method(items_fields,doc_items)
63+
S3method(items_filter,doc_items)
64+
S3method(items_intersects,doc_item)
65+
S3method(items_intersects,doc_items)
66+
S3method(items_length,doc_items)
67+
S3method(items_matched,doc_items)
68+
S3method(items_next,doc_items)
69+
S3method(items_properties,doc_item)
70+
S3method(items_properties,doc_items)
8871
S3method(items_reap,default)
89-
S3method(items_sign,STACItem)
90-
S3method(items_sign,STACItemCollection)
72+
S3method(items_reap,doc_item)
73+
S3method(items_reap,doc_items)
74+
S3method(items_select,doc_items)
9175
S3method(items_sign,default)
76+
S3method(items_sign,doc_item)
77+
S3method(items_sign,doc_items)
78+
S3method(link_open,doc_link)
79+
S3method(links,rstac_doc)
9280
S3method(parse_params,ext_filter)
9381
S3method(parse_params,ext_query)
9482
S3method(parse_params,items)
9583
S3method(parse_params,search)
96-
S3method(print,Conformance)
97-
S3method(print,Queryables)
98-
S3method(print,RSTACQuery)
99-
S3method(print,STACCatalog)
100-
S3method(print,STACCollection)
101-
S3method(print,STACCollectionList)
102-
S3method(print,STACItem)
103-
S3method(print,STACItemCollection)
10484
S3method(print,cql2_filter)
105-
S3method(stac_version,RSTACDocument)
106-
S3method(stac_version,RSTACQuery)
107-
S3method(stac_version,STACCollectionList)
108-
S3method(subclass,RSTACDocument)
109-
S3method(subclass,RSTACQuery)
85+
S3method(print,doc_catalog)
86+
S3method(print,doc_collection)
87+
S3method(print,doc_collections)
88+
S3method(print,doc_conformance)
89+
S3method(print,doc_item)
90+
S3method(print,doc_items)
91+
S3method(print,doc_link)
92+
S3method(print,doc_links)
93+
S3method(print,doc_queryables)
94+
S3method(print,rstac_query)
95+
S3method(read_collections,catalog)
96+
S3method(read_items,doc_collection)
97+
S3method(stac_type,rstac_doc)
98+
S3method(stac_version,doc_collections)
99+
S3method(stac_version,doc_items)
100+
S3method(stac_version,rstac_doc)
101+
S3method(stac_version,rstac_query)
102+
S3method(subclass,rstac_doc)
103+
S3method(subclass,rstac_query)
110104
S3method(text_not_op,cql2_between_op)
111105
S3method(text_not_op,cql2_in_op)
112106
S3method(text_not_op,cql2_isnull_op)
@@ -176,7 +170,6 @@ export(asset_eo_bands)
176170
export(asset_key)
177171
export(asset_raster_bands)
178172
export(assets_download)
179-
export(assets_filter)
180173
export(assets_rename)
181174
export(assets_select)
182175
export(assets_url)
@@ -194,37 +187,62 @@ export(get_request)
194187
export(has_assets)
195188
export(items)
196189
export(items_as_sf)
190+
export(items_as_sfc)
191+
export(items_as_tibble)
197192
export(items_assets)
198193
export(items_bbox)
199194
export(items_compact)
200195
export(items_datetime)
201196
export(items_fetch)
202197
export(items_fields)
203198
export(items_filter)
204-
export(items_group)
199+
export(items_intersects)
205200
export(items_length)
206201
export(items_matched)
207202
export(items_next)
203+
export(items_properties)
208204
export(items_reap)
205+
export(items_select)
209206
export(items_sign)
207+
export(items_sign_bdc)
208+
export(items_sign_planetary_computer)
209+
export(link_open)
210+
export(links)
210211
export(post_request)
211212
export(preview_plot)
212213
export(queryables)
214+
export(read_collections)
215+
export(read_items)
216+
export(read_stac)
213217
export(sign_bdc)
214218
export(sign_planetary_computer)
215219
export(stac)
216220
export(stac_search)
221+
export(stac_type)
217222
export(stac_version)
218223
importFrom(crayon,bold)
224+
importFrom(grid,grid.raster)
219225
importFrom(httr,GET)
220226
importFrom(httr,POST)
221227
importFrom(httr,add_headers)
228+
importFrom(httr,build_url)
222229
importFrom(httr,content)
223230
importFrom(httr,http_type)
231+
importFrom(httr,parse_url)
224232
importFrom(httr,status_code)
225233
importFrom(httr,write_disk)
234+
importFrom(jpeg,readJPEG)
226235
importFrom(jsonlite,fromJSON)
227-
importFrom(lifecycle,deprecated)
236+
importFrom(jsonlite,read_json)
228237
importFrom(magrittr,"%>%")
238+
importFrom(png,readPNG)
239+
importFrom(sf,st_geometry)
240+
importFrom(sf,st_geometry_type)
241+
importFrom(sf,st_intersects)
242+
importFrom(sf,st_sf)
243+
importFrom(sf,st_sfc)
244+
importFrom(sf,st_transform)
229245
importFrom(utils,URLdecode)
230246
importFrom(utils,modifyList)
247+
importFrom(utils,setTxtProgressBar)
248+
importFrom(utils,txtProgressBar)

NEWS.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# rstac (development version)
1+
# rstac 1.0.0 (Released 2024-02-14)
2+
3+
* Add support to static catalogs;
4+
* `read_stac()`: read any STAC document from an URL (e.g. Catalog, Collection, Items, or Item);
5+
* `links()`: extract and filter links from a STAC document;
6+
* `link_open()`: open the document referenced by the provided link;
7+
* `read_items()`: read items listed in links section of the provided Collection document;
8+
* `read_collections()`: read collections listed in links section of the provided Catalog document;
9+
* Provide new functions to facilitate work with items;
10+
* `items_as_sf()` / `items_as_sfc()`: convert items into sf objects
11+
* `items_intersects()`: is a helper function to test what items intersect some given geometry.
212

313
# rstac 0.9.2-4 (Released 2023-06-15)
414

0 commit comments

Comments
 (0)