Code Monkey home page Code Monkey logo

Comments (2)

ldemaz avatar ldemaz commented on June 27, 2024

As an update, I can confirm hanging on another geometry also. This is a multipolygon that first went through prepair (fixing a self-intersection).

Pre-prepair:

POLYGON((30.6412432373056 -22.3588451355342,30.6418011367807 -22.3588451355342,30.641672390748 -22.3591240852718,30.640942829896 -22.3590382545833,30.6411788642893 -22.3583086937312,30.6413934410105 -22.3585018127803,30.6410501182566 -22.3585876434688,30.6412432373056 -22.3588451355342)

Post-prepair (i.e. the contents of the shapefile):

MULTIPOLYGON (((30.6412432373056 -22.3588451355342,30.6410770138319 -22.3586235042359,30.640942829896 -22.3590382545833,30.641672390748 -22.3591240852718,30.6418011367807 -22.3588451355342,30.6412432373056 -22.3588451355342)),((30.6413934410105 -22.3585018127803,30.6411788642893 -22.3583086937312,30.6410920036326 -22.3585771721248,30.6413934410105 -22.3585018127803)),((30.6410501182566 -22.3585876434688,30.6410770138319 -22.3586235042359,30.6410920036326 -22.3585771721248,30.6410501182566 -22.3585876434688)))

Which looks like this

It seems that the culprit is again the -rrrn flag (part of -fix).

Tested on RHEL (gdal 2.2.3) and Mac Sierra (gdal 2.2.2).

from pprepair.

ldemaz avatar ldemaz commented on June 27, 2024

Also, just to add to this, pprepair works on this, if passing other arguments, e.g.

../pprepair/pprepair -i temp2.shp -o tempf.shp -rtnn -rtam

But the results seem to remove two of three parts fairly consistently (i.e. when testing various other options besides -rrlb -rrrn). I haven't used pprepair in a while, but I seem to recall that it should preserve those parts.

from pprepair.

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.