Skip to content

Commit

Permalink
Revert "try to use lwgeom to make valid; #88 (comment)"
Browse files Browse the repository at this point in the history
This reverts commit d0fa02e.
  • Loading branch information
timelyportfolio committed Jan 27, 2019
1 parent 0175f82 commit c5cbb01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ Imports:
sf (>= 0.5-2),
shiny
Suggests:
crayon,
lwgeom
crayon
Enhances:
geojsonio
Encoding: UTF-8
Expand Down
15 changes: 0 additions & 15 deletions R/edit.R
Original file line number Diff line number Diff line change
Expand Up @@ -300,21 +300,6 @@ editFeatures.sf = function(

merged <- dplyr::select_(merged, "-edit_id")

# check to see if the result is valid with lwgeom if available and make valid
# if error then return the invalid merged with a warning
if(requireNamespace("lwgeom")) {
tryCatch(
{
merged <- st_make_valid(merged)
},
error = function(e) {
warn("unable to make valid with lwgeom; please inspect closely", call. = FALSE)
}
)
} else {
message("lwgeom package not available so could not test validity")
}

# return merged features
if(record==TRUE) {
attr(merged, "recorder") <- attr(crud, "recorder", exact=TRUE)
Expand Down

0 comments on commit c5cbb01

Please sign in to comment.