Comments (5)
Show me the input please, here I can't understand what the problem is.
from pprepair.
And here is the complete data set I used:
test_pprepair_issue.zip
from pprepair.
First, your data are probably not what should be used as input in pprepair. There are many disconnected parts, and here I am not sure what I as a human would do to "repair" this dataset. What do you want to obtain in the case above where you have roads/canals (I guess...)?
Second, what happens in your first image above is that the empty part gets the value of the triangle in red, because in theory any of the adjacent polygon to a problematic polygon can be used to fix the problematic area. But this is my guess, since I am not sure if I know the meaning of the 2 colours in your image.
In brief: I'd first consider if pprepair can fix your problem here. It seems to me that snapping would perhaps be more appropriate for many of the errors that you have. pprepair was created to solve a very specific problem: fix a planar partition, not any GIS datasets.
Hope this helps.
from pprepair.
- For the first point, each part is supposed to be a planar partition (they are land use parcels so they are supposed to be perfecly contiguous, without any hole nor overlap). So your advice would be to run pprepair on each part separately?
- Sorry, I did not explained much about the pictures. The last image, in my previous post, is the original dataset. The images I firstly posted are the tagged triangulation exported using the argument -otnt. The red triangles are the ones tagged with a 0 and the others are tagged with a 1. All the triangles that are tagged with a 0 are not reconstructed in the output dataset. So there are some initial polygons that are just deleted from the final dataset. The very weird thing is that just adding a node to these polygons make them being tagged with a 1 and thus they reappear in the final dataset.
- Also, I am still not sure about something: is pprepair sensitive to invalid geometries? Should I repair the invidual geometries with prepair before running pprepair?
from pprepair.
- yes
- hmmmm, no time now to check but I advice you to use the branch "new", and use --outtr to see the triangles.
- yes it is. and yes you should. Use branch "new" and then by default the validation of each is done (can be skipped with --skipvalideach). The branch master automatically repairs wrong input ones, but I think it's safer to run prepair on your file first and then pprepair it.
from pprepair.
Related Issues (20)
- poygons disapear after pprepair HOT 9
- Fails to build with GDAL 2.0
- --outerrors option doesn't work HOT 2
- pprepair for self-intersection increases the number of features HOT 1
- pprepair triangulation (--outtr option) contains invalid polygons HOT 2
- in the triangulation output, record an array with the original polygon IDs
- (p)prepair fails on it`s own output polygons (.shp) HOT 6
- pprepair generates lots of spikes (dangling edges) HOT 12
- In case of ties in the "r -LB" , RN choice should only be between the LB neighbors, not all neighbors
- Segmentation fault: 11 when working with empty properties in a geojson input file HOT 3
- segfault when reading features with no geometry HOT 4
- pprepair hangs HOT 3
- Forced region splitting HOT 1
- Specifying SHP-file output doesn't work as advertised HOT 1
- Crash on first run HOT 1
- pprepair creates duplicate vertex
- pprepair hangs on this geometry HOT 2
- CGAL 5.0 support HOT 1
- [has fix] error: 'std::filesystem' has not been declared
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 pprepair.