New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate slivers polygon creates wrong output #16043
Comments
Author Name: Bernhard Ströbl (Bernhard Ströbl) I made a pull request that fixes the case that the polygon to merge with has id=0: #371 |
Author Name: Werner Macho (Werner Macho) Fixed in changeset "71580df366401df4bee9942c099f541796ed90f3".
|
Author Name: Giovanni Manghi (@gioman) Hi Bernhard, I just noticed that seems the last fixed caused a pretty bad regression in the tool. Add the attached sample shape and then make a selection using this expression (or even a simpler one): ("USO_SOLO" = 'LE') OR ("USO_SOLO"='PEDR')OR ("USO_SOLO" = 'LAV') OR ("USO_SOLO"='MATOS') OR ("USO_SOLO"='SEBE_ARV') OR ("USO_SOLO"='ETB') OR ("USO_SOLO"='LA') OR ("USO_SOLO"='LA_GR') OR ("USO_SOLO"='EA') OR ("USO_SOLO"='AUTOESTRADA') then run the tool. The result (attached screenshot) is a shape where many polygons where lost, and if you give the vector a little transparency you'll see that a few polygons are now duplicated. Moreover in the result there are strange "structures" that when edited are revealed as tringular flattened holes (notice that the input layer is topologically correct, it has been checked with GRASS, so such "structures" are really not expected). See attached screencast. Note:
|
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Bernhard Ströbl (Bernhard Ströbl) Giovanni, thanks for thorough testing! |
Author Name: Giovanni Manghi (@gioman)
you welcome! but this is a so useful tool that it is not easy NOT test it :)
do you mean the missing/duplicated polygon? I don't, but instead the attributes of the result layer are mixed up, so it is still wrong, but just on the attributes side. |
Author Name: Bernhard Ströbl (Bernhard Ströbl) Giovanni Manghi wrote:
I mean my result looks the very same using current master and undoing my fix in current master. Are you on current master? Did not check attributes, though. |
Author Name: Bernhard Ströbl (Bernhard Ströbl) Giovanni, I redid my code, and issued a pull request containing the changes. Give it a try with your data. |
Author Name: Alexander Bruy (@alexbruy) Fixed in changeset "07772f13f6ac102dd18eccf68d350f6bafeef4c8".
|
Author Name: Alexander Bruy (@alexbruy)
|
Author Name: Giovanni Manghi (@gioman) Bernhard Ströbl wrote:
Thanks! well... if it wasn't clean (then I missed something when using grass) then the "strange" results are understandable. After rewriting the tool code does it works with the provided sample? I'm asking just because I'm with of lack of time to test in there days. cheers! |
Author Name: Bernhard Ströbl (Bernhard Ströbl) Giovanni Manghi wrote:
No, the strange results (holes and overlaps) where caused by the code. I have described all that was caused by the data not being clean in message 8 above Giovanni Manghi wrote:
It worked with the sample data. I attached the resulting shape file.
|
Author Name: Giovanni Manghi (@gioman) The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned. |
Tested on GeoServer and QGIS Server Needs forward port to master
[bugfix] WFS-T fixes qgis#15597 qgis#16043 geoserver compatibility
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 6925
Affected QGIS version: master
Redmine category:processing/qgis
Assignee: Bernhard Ströbl
pick the attached shape, then select the polygon with attribute "cat = 36" and try the tool, it will say it can't do the operation.
The shape seems to have no errors, and if imported into postgis then the tool will work as expected.
The text was updated successfully, but these errors were encountered: