Make geopackage from an sf object. Create directory to burn it to if it doesn't exist.
Source:R/spatial.R
fpr_make_geopackage.Rd
Names the layer the same as the name of the dataframe that is burned
Usage
fpr_make_geopackage(
dat,
dir = "data/fishpass_mapping/",
gpkg_name = "fishpass_mapping",
utm_zone = 9,
x = "utm_easting",
y = "utm_northing",
crs = 4326
)
Arguments
- dat
Dataframe with coordinates to burn to geopackage
- dir
String (quoted) representing relative path to directory where geopackage will be burned
- gpkg_name
String Name of the geopackage
- utm_zone
Integer UTM zone
- x
String (quoted) representing column name where x coordinates are stored
- y
String (quoted) representing column name where y coordinates are stored
- crs
Integer destination CRS. Defaults to 4326