How to use a Search Cursor - ArcGIS Pro
Автор: Matt's Mapping and GIS
Загружено: 2024-10-16
Просмотров: 154
Australian Bureau of Statistics
Census Data - https://www.abs.gov.au/census/find-ce...
Boundary Data - https://www.abs.gov.au/statistics/sta...
Music provided by TheRelaxedMovement.
Check it out here: / therelaxedmovement
© Henry Keate t/a TheRelaxedMovement. All Rights Reserved
ESRI ArcGIS Pro - Search Cursor - https://pro.arcgis.com/en/pro-app/lat...
Script
-------------------------------------------------------------------------------------------------------
import arcpy
-- Variables --
Input Data.
InputData = r" ** Address to your data ** "
Fields wanting to be returned.
PostCode_Field = 'POA_CODE21'
TotalPop_Field = 'Tot_P_P'
-- Variables -- End
Search Cursor
with arcpy.da.SearchCursor(InputData, [PostCode_Field, TotalPop_Field]) as SearchCur01:
for SeCur01 in SearchCur01:
print('Postcode is: ' + str(SeCur01[0]) + ' | Population is: ' + str('{:,.0f}'.format(SeCur01[1])))
print(' ')
del SearchCur01
_________________________________________________________________________________________________ End of Script _________________________________________________________________________________________________
-------------------------------------------------------------------------------------------------------
Timestamps
00:00 Introduction
00:39 Search Cursor - Overview
01:49 Example Setup
05:23 Search Cursor - Detail
12:51 Search Cursor - Result
13:37 Search Cursor - Demonstration
19:56 Search Cursor - Run Demonstration
20:50 Summary and Signoff
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: