Мощь ГИС заключается в совместном анализе нескольких источников данных. Зачастую, ответ, который вы ищете, лежит в разных слоях, и вы должны произвести какой-то анализ, чтобы извлечь и обобщить данную информацию. Одним из таких видов анализа является Points-in-Polygon. Если у вас есть полигональный слой и точечный слой, и вы хотите знать, как много или какие именно точки попадают в каждый полигон, вы можете использовать этот метод анализа.
Учитывая расположение всех известных значимых землетрясений, мы постараемся выяснить, в какой стране было больше всего землетрясений.
We will use NOAA’s National Geophysical Data Center’s Significant Earthquake Database as our layer represenging all major earthquakes. Download the tab-delimited earthquake data.
Natural Earth has Admin 0 - Countries dataset. Download the countries
For convenience, you may directly download a copy of the dataset from the link below:
Источники данных: [NGDC] [NATURALEARTH]
signif.txt
file.Примечание
You may see some error messages as QGIS tries to import the file. These are valid errors and some rows from the file will not be imported. You can ignore the errors for the purpose of this tutorial.
ne_10m_admin_0_countries.zip
file and
click Open. Select the ne_10m_admin_0_countries.shp
as the
layer in the Select layers to add... dialog.earthquake_per_coutry.shp
and Click
OK.Примечание
Be patient after clicking OK, QGIS may take upto 10 minutes to calculate the results.
PNTCNT
. This is
the count of number of points from the earthquakes layer that fall within
each polygon.PNTCNT
field and the
country with highest count will be our answer. Click 2-times on the
PNTCNT
column to get it sorted in descending order. Click on the first
row to select it and close the Attribute Table.We determined from the simple analysis of 2 datasets that China has had the highest number of major earthquakes. You may refine this analysis further by taking into consideration the population as well as the size of the country and determine which is the most adversely affected country by major earthquakes.
This work is licensed under a Creative Commons Attribution 4.0 International License