MaelTheuliere / COGiter

Fonctions, données et fonds de carte pour gérer les données au territoire
https://maeltheuliere.github.io/COGiter/
Other
15 stars 2 forks source link

filtrer_cog_geo(garder_supra = TRUE) ne fonctionne pas pour certains DOM #34

Closed jengelaere closed 3 years ago

jengelaere commented 3 years ago

La Martinique, la Guadeloupe et la Réunion sont concernées, les messages d'erreurs varient selon la région :

terr_geo <- COGiter::filtrer_cog_geo(reg = "01", garder_supra = TRUE)
# Error in s2_geography_from_wkb(x, oriented = oriented, check = check) : 
#   Evaluation error: Found 1 feature with invalid spherical geometry.
#  Loop 5 is not valid: Edge 123 is degenerate (duplicate vertex).
# De plus : There were 15 warnings (use warnings() to see them)  

terr_geo <- COGiter::filtrer_cog_geo(reg = "02", garder_supra = TRUE)
# Error in s2_geography_from_wkb(x, oriented = oriented, check = check) : 
#   Evaluation error: Found 1 feature with invalid spherical geometry.
# [1] Loop 0 is not valid: Edge 889 is degenerate (duplicate vertex).
# De plus : There were 15 warnings (use warnings() to see them)  

terr_geo <- COGiter::filtrer_cog_geo(reg = "04", garder_supra = TRUE)
# Erreur : Assigned data `value` must be compatible with existing data.
# x Existing data has 1 row.
# x Assigned data has 2 rows.
# i Row updates require a list value. Do you need `list()` or `as.list()`?
# Run `rlang::last_error()` to see where the error occurred.
jengelaere commented 3 years ago

Dsle, je ferme, c'est une histoire de version pas à jour de COGiter 🙃