Repository navigation
fix(analysis): warn about Clip boundary slivers (#1998) #2118
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -682,6 +682,13 @@ contribute their points, while lines and polygons contribute their bounding-box | |||||||||
| two distinct locations with numeric values are needed. It adds **two separate Float32 GeoTIFF | ||||||||||
| layers**: the prediction, named by `output`, and `<output>_variance`. | ||||||||||
|
|
||||||||||
| **Clip** (`clip`) keeps the parts of `input` inside the `clip` polygons. It gives one notice with | ||||||||||
| the count of output polygon features whose total area is less than one millionth (`1e-6`) of | ||||||||||
| their input feature's area, measured in the overlay plane. These may be slivers along the clip | ||||||||||
| boundary; they are kept unchanged. Check these features before using the result as a map series | ||||||||||
| index, where a tiny sliver can make an apparently empty page. Ordinary clipped pieces give no | ||||||||||
| sliver notice, and empty intersections are still left out. | ||||||||||
|
Comment on lines
+689
to
+690
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doc overclaim (Quality, confidence high). "Ordinary clipped pieces give no sliver notice" is not true as a general statement. The check is a ratio against the input feature's area, so a small real piece below
Suggested change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair: a small real piece of a very large input can fall under the ratio too, so the sentence should say a notice is possible there. That's wording, left for the release quality pass. |
||||||||||
|
|
||||||||||
| **Erase** (`erase`) removes from `input` features (points, lines or polygons) their parts inside | ||||||||||
| the `erase` polygons. An erase polygon's edge counts as inside it, as for Clip, so a point on the | ||||||||||
| edge or a stretch of line along it is erased; features left with nothing are left out, and one | ||||||||||
|
|
||||||||||
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.
Quality, confidence medium (not a blocker). The ratio is taken in the analysis plane (Web Mercator within ±85.05°), so "area" in this message means plane area, not ground area. Mercator's scale grows as 1/cos²(lat), so for a feature spanning many degrees of latitude the ratio can be off by a large factor. The user guide says "overlay plane"; the notice does not. Also,
1e-6appears here, inclip_part, and in the docs. A named constant would keep the three in step.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.
Right, it's a ratio of plane areas, and a ratio within one feature barely moves with Mercator's scale at county size. Saying "area in the overlay plane" in the message is wording, left for the release quality pass.