This function update/create the following metadata of an existing GeoLocator Data Package based on the data contained within the package.
update_gldp_temporal()
: Setspkg$temporal
with the date range of thedatetime
values from themeasurements
resource, if available.update_gldp_spatial()
: Setspkg$spatial
to the GeoJSON bounding box of all locations found in observation, paths and pressurepaths.update_gldp_taxonomic()
: Setspkg$taxonomic
to the uniquetags$scientific_name
found in the observations.update_gldp_number_tags()
:update_gldp_bibliographic_citation()
: Setspkg$bibliographicCitation
to the formattedutils::bibentry()
of the current package.update_gldp_reference_location()
: Sets thepkg$reference_location
field to the median latitude and longitude values from theobservations
resource, if available.update_gldp_metadata
: Re-arrange the order of the properties according to the order of the schema
update_gldp
performs all of the the functions mentioned above.
Usage
update_gldp(pkg)
update_gldp_temporal(pkg)
update_gldp_spatial(pkg)
update_gldp_taxonomic(pkg)
update_gldp_number_tags(pkg)
update_gldp_bibliographic_citation(pkg, ...)
update_gldp_reference_location(pkg)
update_gldp_metadata(pkg)
Arguments
- pkg
A GeoLocator Data Package object
- ...
overwrite parameters for
utils::bibentry()