Internal function for cleaning coordinates' metadata provided by Ogimet

get_coord_from_string(txt, pattern = "Longitude")

Arguments

txt

string element with coordinates from Ogimet

pattern

which element (longitude or latitude) to extract

Format

The returned object is the geographic coordinates using WGS84 (EPSG:4326) in decimal format. Negative values mean western or southern Hemisphere

Examples

txt <- "12120: Leba (Poland)\nLatitude: 54-45N Longitude: 017-32E Altitude: 2 m." get_coord_from_string(txt, pattern = "Latitude")
#> Error in get_coord_from_string(txt, pattern = "Latitude"): could not find function "get_coord_from_string"