How to split a irregular polgon into different parts having specific area for each part?
Mostra commenti meno recenti
I have an agricultural area shape file extracted from LULC map downloaded from ESRI. I also have the areas of different crops in thart agricultural area. Now I need to split that agricultural area based on that crop areas, by starting the splitting from one side of the polygon and the next area starts from ending of the previous area.The polygon of agricultural area is an irregular and discontinuous polygon
Risposte (2)
John D'Errico
il 19 Ago 2023
Modificato: John D'Errico
il 19 Ago 2023
0 voti
There is no magical, trivial solution, based on a single call to any function. Why would someone write that anyway?
But it would not be difficult to do, if you do not care about the actual shape of the resulting pieces. I say that, because finding a GOOD set of sub-regions will be a mathematically nasty problem, if you define good as meaning no long, thin sub-regions.
If you don't give a hoot about the actual shape of the results, then it is mathematically trivial. What would you do?
- Compute the area of the polygon, cumulatively from the left hand edge. So, if you plotted that cumulative area, it would be a monotonically increasing function, going from zero to the total area of the polygon. The x axis on that plot will be the value of x as you scan across the region from left to right. The y axis will be cumulative area. Got the idea?
- Inverting that functional relationship gives you the break points that will tell you how to split the polygon.
I don't do homework though. Sorry. And this is almost certainly essentially a homework problem, because if you really cared about the solution, you would also have asked how to solve the problem to find well-posed sub-regions.
Bruno Luong
il 19 Ago 2023
0 voti
Same question answered here
Categorie
Scopri di più su ROI-Based Processing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!