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

Tolerance for comparison operations #55085

Closed
3DTOPO opened this issue Oct 29, 2023 · 2 comments
Closed

Tolerance for comparison operations #55085

3DTOPO opened this issue Oct 29, 2023 · 2 comments

Comments

@3DTOPO
Copy link

3DTOPO commented Oct 29, 2023

Feature description

I am unable to use the Select by location equals and Join Attributes by location functions because of tiny variations in what should be considered identical lines.

For instance, consider the bounding box of feature A:

<gml:lowerCorner>-12818885.0735037 5407394.84287971</gml:lowerCorner
<gml:upperCorner>-12814007.3953906 5420289.51805539</gml:upperCorner>

and the bounding box for feature B:

<gml:lowerCorner>-12818885.0735037 5407394.84287971</gml:lowerCorner
<gml:upperCorner>-12814007.3950567 5420289.51820939</gml:upperCorner>

They are identical to the 3rd decimal place, eg millimeters. It looks like the only solution to this is to using something like ST_SnapToGrid, but I would welcome any suggestions.

I'm not familiar with the codebase, but wouldn't it be trivial to perform rounding or truncation when comparing features? It would make the features much more useful.

Additional context

This open issue from 2018 states that tolerance has never been implemented:
#27207

@3DTOPO
Copy link
Author

3DTOPO commented Oct 30, 2023

I just found the Simplify snap to grid feature, which allows me to change the precision.

It is nice to be able to do it in QGIS, but it would be very nice to have a tolerance parameter so the vector geometry doesn't have to be modified to find near-identical matches. It would also help search for similar features without creating a buffer.

@3DTOPO 3DTOPO changed the title Tolerance for equal operations Tolerance for comparison operations Nov 6, 2023
@alexbruy
Copy link
Contributor

alexbruy commented Dec 7, 2023

Duplicates #27207.

@alexbruy alexbruy closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants