getWDPA: Get protected area

Description Usage Arguments Examples

Description

This function gets the information available for the protected area specified with a WDPA ID.

Usage

1
getWDPA(wdpaid, api_key, with_geometry = TRUE, filename = NA)

Arguments

wdpaid

WDPA ID to return data for

api_key

ProtectedPlanet.net API key

with_geometry

Boolean to return the geometry of the protected area

filename

If with_geometry is TRUE, the filename to use when saving the geometry to a GeoJSON file. By default, the filename is the WDPA ID (e.g. 10721.geojson)

Examples

1
2
3
4
## Not run: 
getWDPA(wdpaid = 10721, api_key='xxxxxxxxxxx', with_geometry = TRUE)

## End(Not run)

ljvillanueva/rWDPA documentation built on May 21, 2019, 7:33 a.m.