read_spatial_vector: Read Spatial Vector

View source: R/utils.R

read_spatial_vectorR Documentation

Read Spatial Vector

Description

This function reads a spatial vector file and returns either an 'sf' object or a 'sv' object.

Usage

read_spatial_vector(x, layer, returnclass = c("sf", "sv"))

Arguments

x

A character string specifying the path to the spatial vector file.

layer

A character string specifying the later to read in case there are more than one in the zip file.

returnclass

A character string specifying the class of object to return. Options are "sf" for sf object and "sv" for sv object.

Value

Either an 'sf' object or a 'sv' object.


AndySouth/rnaturalearth documentation built on April 14, 2025, 3:22 a.m.