How to script the summation of all values of a specific attribute across all features within a layer
kbellis
Global Mapper UserTrusted User
For example, on one layer is a group of 3 counties, each with the attribute Est_1_Jul_2021 and their respective population values. I'd like to create a new attribute, GroupPop with the sum of all features in the layer.
It's been several years since I wrote any GM scripts and I'm pretty rusty. Thank you very much for any help!
Kind regards,
Kelly
Categories
- 12.9K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 651 GM Script Language
- 55 User Scripts
- 115 GPS Features
- 420 Projection Questions
- 834 Raster Data
- 1.4K Vector Data
- 6.6K Support
- 181 Announcement and News
- 935 Bug Report
- 561 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 578 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 109 Global Mapper Forum Website
