-
-
Notifications
You must be signed in to change notification settings - Fork 884
Add documentation for check geometry: Polygons exceeding boundaries #10314
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
base: master
Are you sure you want to change the base?
Conversation
ad3e5bf to
2990609
Compare
| Polygons exceeding boundaries | ||
| ----------------------------- | ||
|
|
||
| Checks if the polygons follow the boundaries of the reference layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence looks obscure to me. We really should clarify what "follows boundaries" means. To what extent a feature is considered as following (or not) another one's boundary? Too unclear to me to suggest any rewording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well the alg name itself a bit misleading qgis/QGIS#63454 (comment)
I think the idea is that polygon boundary should lie completely on the reference. If it exceeds, errors will be detected. Regarding what extent, I tried to stretch them, made it distant from the reference, and no error detected.

But if you make it like this, close to the reference layer, it will be considered as error.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But if you make it like this, close to the reference layer, it will be considered as error.
The key point is "how close should they be?". And I'm not sure it has anything to do with that 10^-8 tolerance value.
If it exceeds, errors will be detected
I'm not sure either. See below (hashed are check features). They snap to the reference feature vertices except one vertex. And both are errors.

Well, at some point I don't think we have to try to guess what is in play. It is up to devs to provide necessary information for a reliable documentation. @Djedouas we will really need your help to clarify what "follow boundaries" actually means (and we also have questions in #10326). Thanks.
|
|
||
| - ``gc_layerid``: the ID of the input layer. | ||
| - ``gc_layername``: the name of the input layer. | ||
| - ``gc_partidx`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still, no output for these fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes still
| - ``POLYGONS`` | ||
| - [vector: polygon] | ||
| - Layer with the polygons to check against. | ||
| * - **Errors exceeding boundaries** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This label is not obvious...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try to use simpler geometric shapes for features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this example; it is hard to understand what triggers the error: the offset at the left, the middle or the right? An error feature should be caused by a single reason, easier for users to understand.
2990609 to
d29ada2
Compare
|
Trying to reformulate the rules (after I took some headache medicine), in a way to highlight behavior of the correct input feature
---> if the input feature bounding box does not intersect a reference feature bounding box, then the input feature is not following any boundary -> error (logic, they are potentially "too far" from each other)
--> If the input feature bounding box intersects reference features bounding boxes, for each of the reference features, the input feature should either contain them or not share any portion of area with them . Summary: An input feature follows boundaries if:
Sorry to say, but this looks messy!!! I'm failing to see what real world scenario this tries to cover, and I confirm that the alg behaves the same as the geometry checker plugin. I fail to see when we are following any boundary in the above scenarios, and suspect a broken feature. |
Yes
Me too
Who could answer this? |
|
I would say developers ! Let's see https://www.mail-archive.com/[email protected]/msg57084.html. |
|
Can we close this? @DelazJ |
|
@hefniraera I'd have said yes. |
Actually, it was sent today... I thought it was for a long time ago. _ I should go and sleep._ |






Refs #9530
Goal:
Ticket(s): #