Compute % of Polygon Area falling within an overlaping Polygon
I have hundreds of polygons in Shapefile format (source polys). I need to compute, for each source polygon the area found within a second confining polygon. The source polys will exist both inside and outside of the confining poly.
I have no idea where to go inside of GM V21 to set up this type of computation.
Also is there a way to automate this function and write a report of the results into a spreadsheet?
I have no idea where to go inside of GM V21 to set up this type of computation.
Also is there a way to automate this function and write a report of the results into a spreadsheet?
Tagged:
Answers
-
Just an idea. Use the confining polygon as the export bounds and export the source polygons out; essentially cropping them to your confining boundary. Then import back in and compare the areas against the original polygons.
- Select the confining polygon
- Right-click on source polygons layer: Layer > Export > Shapefile
- Choose Export Areas
- Go to Export Bounds tab
- Choose Crop to Selected Area Feature(s)
- Import this new shapefile
- Turn off all layers except the source polygons
- Search > Search By Attributes, Name and Description
- In the Attribute Editor click on the Save to CSV button
- Export the data
- Repeat for the cropped source polygons
- Use Excel to compute the percentage between the original and cropped ENCLOSED_AREA values. Any feature that are absent from the side-by-side comparison have a percentage of 0.
Categories
- 12.8K All Categories
- 5.7K Features Discussion
- 345 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 639 GM Script Language
- 54 User Scripts
- 115 GPS Features
- 417 Projection Questions
- 827 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 178 Announcement and News
- 918 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 570 Other Discussion
- 131 GIS Data Sources
- 27 Global Mapper Showcase
- 239 How I use Global Mapper
- 107 Global Mapper Forum Website