Skip to contents

read .gdb geodatabase file via sf::st_read()

Usage

shapefile_from_gdb(fname, layer = NULL, ...)

Arguments

fname

path and filename of .gdb file

layer

optional name of layer, see sf::st_read()

...

passed to sf::st_read()

Value

like output of sf::st_read() but with ejam_uniq_id column 1:NROW()

Examples

  # npl <- sf::st_read("~/../Desktop/NPL/NPL_Boundaries.gdb")
  # npl <- shapefile_from_gdb("~/../Desktop/NPL/NPL_Boundaries.gdb",
  #   layer = "SITE_BOUNDARIES_SF")
  # npl <- shapefile_from_gdbzip("~/../Desktop/NPL/NPL_Boundaries.zip")
  # mapview::mapview(npl[x$STATE_CODE == "CA", ])