DOI-USGS / hyRefactor

https://code.usgs.gov/wma/nhgf/reference-fabric/hyrefactor
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Fix cases where frags did not exist in clean_geometry #24

Closed mikejohnson51 closed 2 years ago

mikejohnson51 commented 2 years ago

Hi @dblodgett-usgs,

This should solve the issue of the missing fragments, and duplicate areasqkm issue.

library(hyRefactor)
#> Registered S3 method overwritten by 'geojsonlint':
#>   method         from 
#>   print.location dplyr
#> USGS Support Package: https://owi.usgs.gov/R/packages.html#support
catchments = readRDS("/Users/mjohnson/Downloads/agg_fail.rds")
ttt = clean_geometry(catchments)
plot(ttt$geometry)

Created on 2021-12-06 by the reprex package (v2.0.1)

dblodgett-usgs commented 2 years ago

Thanks Mike!!