get_global_mangrove_watch: Download global mangrove watch polygon data

View source: R/get_global_mangrove_watch.R

get_global_mangrove_watchR Documentation

Download global mangrove watch polygon data

Description

The function first downloads the zip file, unzip it, load the shapefile... ...convert the shapefile to geopackage and write the geopackage to file.

Usage

get_global_mangrove_watch(yyyy = NULL, file_path = NULL)

Arguments

yyyy

year (1996, 2007, 2008, 2009, 2010, 2015, 2016)

file_path

path location

Value

gmw gpkg

Examples



file_path <- ".." # path to the folder where you want to download the polygon
# Download teow polygon
get_global_mangrove_watch(yyyy = 2007, file_path=file_path)



Ohm-Np/openRspat documentation built on June 23, 2022, 3:03 p.m.