Skip to contents

Makes a request to a user specified Google Cloud Storage bucket to get an object (GeoPackage) in the bucket.

Usage

get_gcs_object(token, bucket, object)

Arguments

token

an OAuth2.0 token which allows a user to make authenticated HTTP requests to the Google Cloud Storage API.

bucket

single element character vector of the name of Google Cloud Storage bucket.

object

single element character vector of the name of GeoPackage to get.

Value

two element list. First element is the path to where the GeoPackage has been written or character vector with an error message. The second element is the file name to display to users when selecting the GeoPackage.