Giter Club home page Giter Club logo

Comments (21)

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024 1

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

(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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

just see similar errors are dealt with in #13. are the code fixes already on CRAN?

from wdpar.

jeffreyhanson avatar jeffreyhanson commented on June 8, 2024

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

Thanks for checking it. Probably the errors are done with the fix in #13, I didnt check this.

from wdpar.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

I now re-run cleaning with the development version of wdpar. I mark all errors that are resolved with a thumb-up ...

from wdpar.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

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.

jeffreyhanson avatar jeffreyhanson commented on June 8, 2024

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.

jeffreyhanson avatar jeffreyhanson commented on June 8, 2024

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.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

Great, thanks, I will let you know how it works out.

from wdpar.

JonasGeschke avatar JonasGeschke commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.