dataQC.generate.footprintWKT: generate a footprintWKT from coordinates

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/DataQC_Utils.R

Description

generate a footprintWKT column for a dataset (preferably DarwinCore eventCore). Lowest level events must be point locations.

Usage

1

Arguments

dataset

data.frame. A data.frame with Event data, formatted as a DarwinCore EventCore file. Must include decimalLatitude, decimalLongitude, eventID and parentEventID.

NA.val

character. What to fill in when there is no data. Default NA

Details

This function will format the geographic coordinates of an event (in the fields decimalLatitude and decimalLongitude) into the WellKnownText format. For events that are at the lowest level of the hierarchy, it assumes a single point location. Higher level events are desribed by polygons based on the coordinates of the child events.

Value

a vector with a footprintWKT value for each row in the dataset

Author(s)

Maxime Sweetlove ccBY 4.0 2020

See Also

Other quality control functions: dataQC.LatitudeLongitudeCheck(), dataQC.TaxonListFromData(), dataQC.TermsCheck(), dataQC.completeTaxaNamesFromRegistery(), dataQC.dateCheck(), dataQC.eventStructure(), dataQC.findNames(), dataQC.guess.env_package.from.data(), dataQC.taxaNames()

Examples

1
2
3
4
dataQC.generate.footprintWKT(data.frame(decimalLatitude="23", 
                                        decimalLongitude=45, 
                                        eventID="sample_1"), 
                             NA.val=NA)

biodiversity-aq/OmicsMetaData documentation built on Dec. 19, 2021, 9:44 a.m.