Skip to content

Commit

Permalink
avoid crazy slow read from ring direction check fixes #411
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Sep 16, 2024
1 parent 33573b4 commit 461e458
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
nhdplusTools 1.3.1
==========

- no longer check ring direction in `get_nhdplushr()` to avoid very slow run time on some polygon layers.

nhdplusTools 1.3.0
==========

Expand Down
2 changes: 1 addition & 1 deletion R/get_nhdplushr.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ get_nhdplushr <- function(hr_dir, out_gpkg = NULL,

for(layer in layers) {
if(!is.null(out_gpkg) && layer %in% layer_names & !overwrite) {
out <- read_sf(out_gpkg, layer)
out <- read_sf(out_gpkg, layer, check_ring_dir = FALSE)
} else {

layer_set <- lapply(gdbs, get_hr_data, layer = layer, ...)
Expand Down

0 comments on commit 461e458

Please sign in to comment.