importBC_data() error
GailR opened this issue · 2 comments
GailR commented
importBC_data()
and listBC_stations()
are throwing the same error on R 4.2.1, Windows (BC Gov workstation) and Mac OS (personal). The nature of the error is unclear to me.
library(envair)
PG_data <- importBC_data('Prince George Plaza 400',2010:2012)
airzones was updated on NULL
Error in wk_handle.wk_wkb(wkb, s2_geography_writer(oriented = oriented, :
Loop 0 is not valid: Edge 441 has duplicate vertex with edge 446
sessionInfo()
R version 4.2.1 (2022-06-23 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.utf8 LC_CTYPE=English_Canada.utf8
[3] LC_MONETARY=English_Canada.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Canada.utf8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_1.0.10 envair_0.2.2.100
loaded via a namespace (and not attached):
[1] Rcpp_1.0.9 pillar_1.8.1 compiler_4.2.1 bcmaps_1.0.3
[5] class_7.3-20 bitops_1.0-7 tools_4.2.1 bit_4.0.4
[9] lifecycle_1.0.3 tibble_3.1.8 gtable_0.3.1 pkgconfig_2.0.3
[13] rlang_1.0.6 DBI_1.1.3 cli_3.4.1 rstudioapi_0.14
[17] curl_4.3.2 e1071_1.7-11 s2_1.1.0 withr_2.5.0
[21] generics_0.1.3 vctrs_0.4.2 hms_1.1.2 classInt_0.4-7
[25] bit64_4.0.5 grid_4.2.1 tidyselect_1.2.0 glue_1.6.2
[29] sf_1.0-8 R6_2.5.1 fansi_1.0.3 vroom_1.6.0
[33] sessioninfo_1.2.2 tzdb_0.3.0 readr_2.1.3 ggplot2_3.3.6
[37] magrittr_2.0.3 units_0.8-0 rcaaqs_0.3.1.9000 scales_1.2.1
[41] ellipsis_0.3.2 assertthat_0.2.1 colorspace_2.0-3 KernSmooth_2.23-20
[45] utf8_1.2.2 proxy_0.4-27 stringi_1.7.8 wk_0.6.0
[49] RCurl_1.98-1.9 munsell_0.5.0 crayon_1.5.2
jeromerobles commented
the listBC_stations() now calculates the airzone based on the lat, long. It is possible that there are some incorrect or invalid lat/long on our database. Try re-installing bcmaps.
Let me know if it still stops data retrieval.
GailR commented
Same result, unfortunately. The latest version of bcmaps was already installed.