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

v.rast.stats: note about vector overlap limitation #1730

Merged
merged 3 commits into from
Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/v.rast.stats/v.rast.stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ <h2>NOTES</h2>
will be chopped off.
<p>If a MASK is present, it will be restored after the script finished.
The script changes temporarily to the resolution of the given raster map.
<p>If an area has several categories in the selected layer (equivalent
to overlapping polygons in Simple Features), only one category will be
kept during the rasterization process. Statistics for the skipped
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't skipped there be replaced by kept? The skipped will be skipped, no? So the resulting stats for kept categories will be partial.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the case of two polygons partially overlapping, you have three topological areas where one area has two categories, shared with the other two areas:

  • area 1: category 1
  • area 2: category 2
  • area 3: categories 1, 2

Let's assume, for area 3 category 1 has been used: statistics for category 1 are complete and for category 2 incomplete because category 2 has been skipped for area 3. Thus resulting stats for skipped categories are partial.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarification, Markus. I re-created the plot in a paper here. So, you mean it's partial because category 2 will be considered only in area 2 in this case then?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a more detailed explanation. OK, @veroandreo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks Markus :)

categories will thus be partial.
metzm marked this conversation as resolved.
Show resolved Hide resolved
<p>
For example, if there are three areas: area 1 with cat 1, area 2 with
cat 2, area 3 with cats 1, 2. Only one category value of area 3 will be
used for rasterization, the other category value will be skipped. Thus
statistics for the used category value will be complete, while
statistics for the skipped category value will be incomplete.
<p><!-- r.univar limitation -->
Large amounts of system memory can be used when extended statistics
(<em>first_quartile,median,third_quartile,percentile </em>) are being requested
Expand Down