ArcGIS implements statistical calculation of all elements within a vector area

1. Task requirements: Count the sum of relevant attributes of all first-level administrative regions in all countries around the world.

(1) There is a global first-level administrative regionvector map, containing the following attributes (flood-related attributes province.shp)

picture

picture

(2) The total value of each attribute of each country needs to be calculated according to the country (country.shp).

picture

2. Method

(1) Convert the elements to points, and then you can obtain the cumulative value within each country through the attribute values ​​of the points in the statistical area!

         Data Management Tools - Elements - Convert Elements to Points Record the converted data as point.shp

picture

(2) Spatially connect country.shp and point.shp, the target element is point, and the connection element is country (note: retain the unique identifier in the country.shp attribute table)

        Analysis Tools—Overlay Analysis—Spatial Connection

picture

The only identifier here is the country name, and the connection is as follows

picture

(3) Perform statistical calculations based on the same attributes of the unique identification field

        Analysis Tools - Statistical Analysis - Summary Statistics

        ​​​Select the fields and statistical types to be counted

picture

The statistical result is an attribute table, including the corresponding country, statistical frequency and final statistical result.

picture

(4) Connect this table with the attribute table of country.shp data, and the connection field is the country name.

picture

(5) Get the final result, a vector data containing the attributes I need

picture

(6) Show it hierarchically~

picture

Tree Valley database (updated on October 13, 2023)

Guess you like

Origin blog.csdn.net/hu397313168/article/details/134369354