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)
(2) The total value of each attribute of each country needs to be calculated according to the country (country.shp).
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
(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
The only identifier here is the country name, and the connection is as follows
(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
The statistical result is an attribute table, including the corresponding country, statistical frequency and final statistical result.
(4) Connect this table with the attribute table of country.shp data, and the connection field is the country name.
(5) Get the final result, a vector data containing the attributes I need
(6) Show it hierarchically~