sp::proj4string()
in the roi_to_jgeom()
S2_initialize_user()
work with user
and/or password
being named vectorsS2_download()
fixes:TRUE
is reported for local files skipped on skipExisting = 'always'
conditionS2_download()
enhancements:tries
parameter added allowing automatic error handlingskipExisting
parameter is tri-state now:always
downloads the data only if local copy doesn't exist
(no matter its size)samesize
downlads the data if local copy doesn't exist or has different size
(be aware it doesn't work for full granule zip downloads, in such a case it's
equivalent to never
)never
downloads the data no matter if local copy existstimeout
now defaults to 1800 (seconds) which seems to be big-enough and prevents
download jobs from getting stalledS2_download()
:timeout
parameter can be specified limiting single file download timeS2_buy_granule()
fixed.geojson_to_geometry()
public.Backward incompatible changes:
S2_put_ROI()
renamed to S2_put_roi()
to follow naming convention of other
functions.S2_put_roi()
nor returns parsed REST API response object instead of the raw
httr
package response object.dateMin
and dateMax
values removed from S2_query_roi()
.Enhancements:
S2_query_roi()
supports the spatial
parameter allowing to parse ROIs'
geometries into R spatial objects.S2_do_query()
casts returned data frames to dplyr's
tibble if the dplyr
package is installed.S2_do_query()
provides information useful for debugging if a request fails.roi_to_jgeom()
made more flexible (can handle all sp's
package *DataFrame
objects as well as reproject objects in non WGS-84 projections)Bugfixes:
S2_buy_granules()
.Other:
S2_download()
function.spatial
parameter of the S2_query_granule()
and S2_query_image()
is now
a string and allows to choose between the sp
package and the sf
package spatial
object representation.S2_query_...()
functions always return a data frame even when query fetches no
results. Returned data frame is guaranteed to have at least an {objectType}Id
column (e.g. granuleId
for granules, regionId
for regions of interest, etc.).S2_download()
can now display a progress bar.regionId
parameter added to all S2_query_...()
functions for which it's valid.
While since 0.1.0 it was possible to use it using the ...
parameter, the explicit
form allows to document it nicely.dateMin
, dateMax
, cloudCovMin
and cloudCovMax
parameters
dropped from all S2_query_...()
functions. They were useless (simply followed
default values assumed by the underlaing REST API) and they messed up proper regionId
parameter handling (they interfered with picking up default dateMin
, dateMax
and
cloudCovMax
values from the region of interest settings)S2_put_ROI()
now also works for admin users.S2_download()
was extended with ...
allowing to pass any additional
parameters to the HTTP API.
See the Advanced image download chapter in the introduction vignette.S2_query_granule()
always returns a data.frame.
The spatial
parameter now affects only the type of the geometry
column
in the returned data.frame (GeoJSON strings when FALSE
,
SpatialPolygonsDataFrame
objects when TRUE
).S2_query_image()
accepts the spatial
parameter which is triggering conversion
of returned GeoJSON geometry strings into SpatialPolygonsDataFrame
objects.spat_to_jgeom()
is now exported and uses rgdal::readOGR()
in the back.
This allows to simply convert any vector file into a GeoJSON geometry string
accepted by the HTTP API calls.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.