signMPCURL: USGS Lidar Toolkit - Sign lidar tile URLs using MPC access...

View source: R/MPCQueryFunctions.R

signMPCURLR Documentation

USGS Lidar Toolkit – Sign lidar tile URLs using MPC access token

Description

Query Microsoft Planetary Computer (MPC) to obtain an access token and use it to sign URLs for lidar point tiles. Function does not verify that the URLs point to assets on MPC. It does, however, verify that URLs point to assets in MPC blob storage. Only assets in MPC blob storage need access tokens. If URLs do not point to assets in MPC blob storage, URLs are returned unchanged.

Usage

signMPCURL(URLs = NULL)

Arguments

URLs

character list containing unsigned URL(s) for point tiles.

Details

Existing token are removed from URLs prior to signing.

Signed URLs are only valid for the current R session and cannot be stored for later use without resigning the URL.

Value

A character list of signed URLs that can be used with fetchUSGSTiles or any other function that retrieves files using https protocol.

Examples

## Not run: 
signMPCURL(URLs)
  
## End(Not run)

bmcgaughey1/USGSlidar documentation built on June 23, 2024, 1:25 a.m.