Skip to main content
Solved

Calculate Statistics for Crop Types in Each Parcel


canerakin
Contributor
Forum|alt.badge.img+6

I have Parcel data and crop data (polygon geom). I am trying to calculate the crop type ratio for each parcel.

My plan was:

  1. Clip the crop data based on parcel
  2. Calculate statistics based on crop type and group by ParcelID

I am not getting a sufficient result.

Any help is appreciated. The workbench has been attached.

Best answer by markatsafe

@canerakin111 Thanks for including the sample data. You can bundle a workspace and data using the File -> Save As Template : makes it easy to ship small examples.

I think the AreaOnAreaOverlayer and the Aggregator are the two key transformers you can use here. I've attached a small example that you can expand on: croptype-per-parcel V1.fmwt

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

9 replies

Forum|alt.badge.img+2

@canerakin111 can you include a small sample dataset?


ebygomm
Influencer
Forum|alt.badge.img+43
  • Influencer
  • April 7, 2020

It's hard to say without seeing the data, but my first thought is that the crop data should be the clipper and the parcels should be the clippee


canerakin
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 7, 2020
markatsafe wrote:

@canerakin111 can you include a small sample dataset?

Hi Mark,

Please see the attached.

croptype.zipsampleparcel.zip

Updated


canerakin
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 7, 2020
ebygomm wrote:

It's hard to say without seeing the data, but my first thought is that the crop data should be the clipper and the parcels should be the clippee

Hi,

I just published a sample data under Mark's comment. I hope this can help to describe the issue better.


ebygomm
Influencer
Forum|alt.badge.img+43
  • Influencer
  • April 8, 2020
canerakin wrote:

Hi,

I just published a sample data under Mark's comment. I hope this can help to describe the issue better.

What output are you looking to get? It's not clear what statistics you are looking for - number of different crop types? Number of discrete crop types? Total area of each crop type per parcel? Crop type with the greatest area in the parcel? Largest discrete area in the parcel?

e.g. the below parcel has 3 different crop types, but 12 discrete areas of crop

 


canerakin
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 8, 2020
ebygomm wrote:

What output are you looking to get? It's not clear what statistics you are looking for - number of different crop types? Number of discrete crop types? Total area of each crop type per parcel? Crop type with the greatest area in the parcel? Largest discrete area in the parcel?

e.g. the below parcel has 3 different crop types, but 12 discrete areas of crop

 

I am trying to calculate two things:

1. Each parcel have multiple crop types. I am trying to calculate the percentage of crop types for each parcel. For example, PRCL000001 has Broadleaf, vineyard and shrubland. What is the ratio of them in this parcel based on the area? The output should be something like 35% Broadleaf, 60% vineyard, 5% shrubland.

2. What is the crop type with the greatest area in the parcel? In the example above, it will be a vineyard, so I will assign this parcel vineyard.


canerakin
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 9, 2020

is there any update with this question?


Forum|alt.badge.img+2
  • Best Answer
  • April 13, 2020

@canerakin111 Thanks for including the sample data. You can bundle a workspace and data using the File -> Save As Template : makes it easy to ship small examples.

I think the AreaOnAreaOverlayer and the Aggregator are the two key transformers you can use here. I've attached a small example that you can expand on: croptype-per-parcel V1.fmwt


canerakin
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • April 13, 2020
markatsafe wrote:

@canerakin111 Thanks for including the sample data. You can bundle a workspace and data using the File -> Save As Template : makes it easy to ship small examples.

I think the AreaOnAreaOverlayer and the Aggregator are the two key transformers you can use here. I've attached a small example that you can expand on: croptype-per-parcel V1.fmwt

Thank you!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings