read_zip_shapefile: Read a shapefile from a pid

View source: R/helpers.R

read_zip_shapefileR Documentation

Read a shapefile from a pid

Description

Read a shapefile 'sf' from a pid that points to the zipped directory of the shapefile and associated files on a given member node.

Usage

read_zip_shapefile(mn, pid)

Arguments

mn

(MNode) A DataOne Member Node

pid

(character) An object identifier

Value

shapefile (sf) The shapefile as an sf object

Author(s)

Jeanette Clark jclark@nceas.ucsb.edu

Examples

## Not run: 
cn <- dataone::CNode('PROD')
adc <- dataone::getMNode(cn,'urn:node:ARCTIC')
pid <- "urn:uuid:294a365f-c0d1-4cc3-a508-2e16260aa70c"

shapefile <- read_zip_shapefile(adc, pid)

## End(Not run)

NCEAS/arcticdatautils documentation built on July 13, 2024, 11:02 a.m.