NewGraphEnvironment / fpr

Fish Passage Reporting functions for British Columbia
http://www.newgraphenvironment.com/fpr/
Other
2 stars 2 forks source link

`fpr_sp_assign_utm` should alert user if the default values for `col_easting` and `col_northing` are not present in the `dat` sf object #85

Closed NewGraphEnvironment closed 2 months ago

NewGraphEnvironment commented 2 months ago

should tell user to assign those params to the columns that already contain partial match of easting (ex. utm_easting) and northing (utm_northing)

so that we don't add easting and northing column when we already have utm_easting and utm_northing

NewGraphEnvironment commented 2 months ago

this relates to https://github.com/NewGraphEnvironment/fish_passage_skeena_2023_reporting/blob/a0c008a0f3a3e1b9d403f41a1452ad93b22404d2/scripts/hab_conf_transfer_to_Q.Rmd#L51

which should read

form_fiss_site_raw <- fpr::fpr_sp_gpkg_backup(
  path_gpkg = paste0("~/Projects/gis/", dir_gis, '/data_field/2023/form_fiss_site_2023.gpkg'),
  update_utm = TRUE,
  update_site_id = FALSE,
  write_back_to_path = FALSE,
  write_to_csv = FALSE,
  write_to_rdata = FALSE,
  return_object = TRUE,
  col_easting = "utm_easting",
  col_northing = "utm_northing"
  )