Learn R Programming

forestChange (version 1.0)

HansenUrltoExtent: Extents in GFC links

Description

This function can extract extents of Global Forest Change data (GFC) using a corresponding URL.

Usage

HansenUrltoExtent(x, path. = "[[:digit:]]{1,3}[N|S|E|W]")

Arguments

x

character. URL to the GFC such as any of these produced by GFCurls.

path.

character. Pattern in the URL to extract the extent. Default extracts the 3 digits nearest to any of the cardinal directions:N, S, E, or W.

Value

extent.

Details

The function is implemented by FCPolygon.

References

http://earthenginepartners.appspot.com/science-2013-global-forest

Examples

Run this code
# NOT RUN {
urtt <- 'https://storage.googleapis.com/earthenginepartners-hansen/
GFC-2017-v1.5/Hansen_GFC-2017-v1.5_treecover2000_10N_010E.tif'
HansenUrltoExtent(urtt)
    
# }

Run the code above in your browser using DataLab