Skip to contents

This function converts all FlatGeoBuf (.FGB) files within a specified folder into layers of a specified Geodatabase (GDB) file.

Usage

convert_fgb_to_gdb(
  input_folder,
  gdb_path,
  overwrite = FALSE,
  crs = "EPSG:3857"
)

Arguments

input_folder

Character. Path to the folder containing FGB files.

gdb_path

Character. File path to the output GDB file.

overwrite

Logical. Whether to overwrite existing layers in the GDB. Default is FALSE.

crs

Character. Coordinate Reference System to transform the data. Default is "EPSG:3857".

Examples

if (FALSE) { # \dontrun{
convert_fgb_to_gdb("/path/to/fgb_folder", "/path/to/output.gdb", overwrite = FALSE, crs = "EPSG:3857")
} # }