Package 'fgc'

Title: FinBIF geographic data conversion
Description: Convert FinBIF data into geographic formats.
Authors: Finnish Museum of Natural History - Luomus [cph], William K. Morris [aut, cre]
Maintainer: William K. Morris <[email protected]>
License: MIT + file LICENSE
Version: 0.3.18.9000
Built: 2024-09-27 11:13:35 UTC
Source: https://github.com/luomus/finbif-geo-convert

Help Index


FinBIF geo-conversion

Description

Convert FinBIF data to geographic formats.

Usage

finbif_geo_convert(
  input,
  output = "none",
  geo = c("point", "bbox", "footprint"),
  crs = "wgs84",
  ...
)

Arguments

input

Character or Integer. Either the path to a Zip archive or tabular data file that has been downloaded from "laji.fi", a URI linking to such a data file (e.g., https://tun.fi/HBF.53254) or an integer representing the URI (i.e., 53254).

output

Character. Output file format in the form of a file extension. One of "shp" or ⁠"gpkg". Use ⁠"none"' (default) to prevent writing output to a file.

geo

Character. Geometry of output. One of "point", "bbox" or " "footprint".

crs

Character or Integer. Coordinate reference system of output. One of "euref" or "wgs84".

...

Other options passed to finbif::finbif_occurrence_load.

Value

An {sf} package simple feature object (invisibly). And if output != "none" then the spatial data file(s) will be written to the current working directory.


Read error message

Description

Read a formatted error msg.

Usage

read_error_msg(err)

Arguments

err

Error to format.

Value

A list.


Sanitise input ID

Description

Convert FinBIF download identifier inputs of different types

Usage

sanitise_id(x)

Arguments

x

A FinBIF download identifier

Value

A sanitised FinBIF download identifier