Skip to content
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

"Merge Selected Features" Tool don't work properly #23478

Closed
qgib opened this issue Sep 11, 2016 · 4 comments
Closed

"Merge Selected Features" Tool don't work properly #23478

qgib opened this issue Sep 11, 2016 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions High Priority
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Sep 11, 2016

Author Name: Tomas Cabezudo (Tomas Cabezudo)
Original Redmine Issue: 15555
Affected QGIS version: 2.16.1
Redmine category:geometry


I found many situations where this tool seems not work properly. I attach a zip file with a shapefile having two adjacent poligons (two pictures showing before and after included too).
Before this, I have verified them with topology checker tool whitout errors.

I select this two adjacent polygons, and when I ejecute this tool, I get a new polygon, but still appears some segments from comun edge in the new polygon..


@qgib
Copy link
Contributor Author

qgib commented Sep 11, 2016

Author Name: Tomas Cabezudo (Tomas Cabezudo)


  • assigned_to_id removed Tomas Cabezudo

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2016

Author Name: Jukka Rahkonen (Jukka Rahkonen)


This is not a bug really but your data is not ready for merging. The two polygons do not share exactly same coordinates. Here is one example:

POINT (197903.09522296838 4796248.478830873)
POINT (197903.09522296768 4796248.478830872)

The difference is in the ninth decimal bet still the vertices are not the same. You must pre-process your data by snapping the vertices to some grid with a reasonable precision. Or then you could make a feature request for making the tool in QGIS to handle vertices with some given tolerance.

You can study your data with a quite useful tool in OpenJUMP Plus. The tool is in Plugins-Topology-Find coverage gaps and Find coverage overlaps in layer. Or you can use the Fence tool and the right-click-Other tools-Vertices In Fence. I do not mean to especially advertise OpenJUMP but I believe that QGIS does not have this kind of tools yet.

@qgib
Copy link
Contributor Author

qgib commented Sep 12, 2016

Author Name: Tomas Cabezudo (Tomas Cabezudo)


Thanks Jukka.

Yes, as You remarked me, some coordinates are different (but 0.000000001 mts..). Really, I don't know what is the value of epsilon to consider the same two values in floating point..
I try to use this tool after to establish setting for snap (to vertex, 0.001 map units), but result are the same.
Obviously, this tool works with no tolerance. Then, as you say, perhaps the best idea is to make a feature request for making the same tool in QGis, but adding tolerance value. I think that would be a more robust tool.

@qgib
Copy link
Contributor Author

qgib commented Jan 4, 2017

Author Name: Giovanni Manghi (@gioman)


you can fix this kind of situations by using Processing/GRASS/v.clean and the snapping options.


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Expressions Related to the QGIS expression engine or specific expression functions labels May 25, 2019
@qgib qgib added this to the Version 2.16 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Expressions Related to the QGIS expression engine or specific expression functions High Priority
Projects
None yet
Development

No branches or pull requests

1 participant