MazamaSpatialUtils (version 0.8.6)

convertOSMTimezones: Convert OSM timezone shapefile

Description

Create a simple features data frame for world timezones.

The full resolution file will be named "OSMTimezones.rda". In addition, "_05", _02" and "_01" versions of the file will be created that that are simplified to 5%, 2% and 1%. Simplified versions will greatly improve the speed of both searching and plotting.

Usage

convertOSMTimezones()

Arguments

Value

Name of the datasetName being created.

Details

A world timezone shapefile is downloaded and converted to a simple features data frame with additional columns of data. The resulting file will be created in the spatial data directory which is set with setSpatialDataDir().

There are 2 timezones which have polygons but the associated rows in the dataframe have no data. These timezones also have no countryCode assigned. We hope to rectify this in a future release. These are the missing timezones:


> OSMTimezones$timezone[is.na(OSMTimezones$countryCode)]
 [1] "America/Nuuk"  "Asia/Qostanay"

References

https://github.com/evansiroky/timezone-boundary-builder