Comments (21)
same in the "BGR" (Bulgaria) subset:
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at 2624909 4999187.7525391364.
from wdpar.
same but different in the "AUT" (Austria) subset:
Error in CPL_geos_op2(op, st_geometry(x), st_geometry(y)) :
Evaluation error: TopologyException: no outgoing dirEdge found at 1243901 5365689.0999999996.
from wdpar.
error in "BEL" Belgium subset:
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at 427241 5675070.
from wdpar.
error in "BRA" Brazil subset:
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at -4449272 -152694.
from wdpar.
another error in "ITA" (Italy):
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at 1025649 5066855.
from wdpar.
another error in "ESP" (Spain):
Error in CPL_geos_union(st_geometry(x), by_feature) :
Evaluation error: TopologyException: Input geom 0 is invalid: Self-intersection at or near point -517842 4727376.2839926593 at -517842 4727376.2839926593.
from wdpar.
another error in "GBR" (United Kingdom):
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at -307405 6250924.
from wdpar.
same in the "GRC" (Greece) subset:
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at 2004406 4598038.
from wdpar.
(just putting it down here to have a collection where errors pop up. the more often they appear, the more general the problem probably is ...)
from wdpar.
just see similar errors are dealt with in #13. are the code fixes already on CRAN?
from wdpar.
Thanks for reporting this - I'll take a look and see what I can do. In the meantime, if you're planning on dissolving all the polygons together or rasterizing the polygons then you can skip this "erasing overlaps" step erase_overlaps = TRUE
.
from wdpar.
Thanks for checking it. Probably the errors are done with the fix in #13, I didnt check this.
from wdpar.
I now re-run cleaning with the development version of wdpar
. I mark all errors that are resolved with a thumb-up ...
from wdpar.
Thanks for reporting this - I'll take a look and see what I can do. In the meantime, if you're planning on dissolving all the polygons together or rasterizing the polygons then you can skip this "erasing overlaps" step
erase_overlaps = TRUE
.
As a simple feedback question to this point: Sounds like you wouldn't use wdpa_clean
for dissolving the WDPA. How would you do it?
from wdpar.
For now, with use of the development version of wdpar
, only GRC keeps to result in the error:
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at 2624909 4999187.7525391364.
// Germany and US subset still to be done ...
from wdpar.
error in "DEU" (Germany):
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at 1273919.4773302849 5975333.6278681727.
from wdpar.
also in "USA":
Error in CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern, :
Evaluation error: TopologyException: side location conflict at -11068713 4016836.
from wdpar.
Hmm, you might need to increase the precision of the geometry calculations for these datasets. Try increasing the geometry_precision
argument to 1e+6
or 1e+8
in wdpa_clean
. This makes the geoprocesssing more robust/correct, but increases run time, so finding the right balance can be tricky.
from wdpar.
I've just pushed a patch which should make the overlap erasing procedure in wdpa_clean
more robust, so hopefully this fixes the issues you're experiencing. Could you please try with the latest version?
from wdpar.
Great, thanks, I will let you know how it works out.
from wdpar.
Working with the development version of wdpar
, there are currently no typology evaluation errors anymore (even without changing the precision).
from wdpar.
Related Issues (20)
- Request to download individual PAs HOT 2
- Feature Request: Add functionality to keep UNESCO sites and not yet implemented areas HOT 15
- HTTP error 404 in "global" query with wdpa_fetch HOT 3
- Fails to download country-level data HOT 2
- Fails package checks under noSuggests config
- Poor internet connection breaks wdpa_fetch HOT 9
- Port error HOT 10
- It takes forever to eraseoverlap for global dataset. HOT 22
- wdpa_fetch HOT 6
- I used the newest version of wdpar, still have this "side location conflict" HOT 7
- The package not run for previous download data, and do not start a new download data HOT 6
- GEOS version sensitivity HOT 7
- upcoming sf breaks wdpar HOT 6
- JOSS Review: Improve documentation on geo-processing steps and its effects on the original geometries HOT 12
- JOSS Review: Improve Statement of need / description of use-cases HOT 16
- JOSS Review - Add links to references cited in README HOT 3
- JOSS Review warning about out of date local data HOT 6
- JOSS Review: Add small POC about Performance claims HOT 7
- JOSS Review: Add statement about state of the field HOT 4
- wdpa_fetch() no longer works HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wdpar.