PNHP / COA_Tools

1 stars 1 forks source link

topology issue in Biotics/CPP layer writes #62

Closed ChristopherTracey closed 4 years ago

ChristopherTracey commented 4 years ago

During the arc.write step

Warning message:
In .call_proxy("arc_write", path, pairlist(data = data, coords = coords,  :
  geometry is not valid, it may be necessary to use argument 'validate = TRUE' to enforce topological consistency
ChristopherTracey commented 4 years ago

This also appeared in the Brook Trout layer. Both times it was solved by adding a validate=TRUE to the arc.write calls. I think this has something to do with floating point issue in the sf package that creating "non-closed" polygons.