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
- 13K All Categories
- 5.8K Features Discussion
- 350 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 837 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 182 Announcement and News
- 942 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.8K Technical Support
- 581 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 245 How I use Global Mapper
- 111 Global Mapper Forum Website
