ARCGIS -PRO Creating a python toolbox

Published: 18 July 2020
on channel: GIS-Geospatial World
9,774
57

ARCGIS -PRO Creating a python toolbox

link to previous tutorial :    • ArcGIS Pro - Selecting Points within ...  

Source Code:

polygonLayer = arcpy.GetParameterAsText(0)
pointLayer = arcpy.GetParameterAsText(1)

for row in arcpy.da.SearchCursor(polygonLayer,"NAME_2"):
query='"NAME_2" = ' +"'"+ row[0] +"'"

arcpy.SelectLayerByAttribute_management(polygonLayer, "NEW_SELECTION",query)
arcpy.SelectLayerByLocation_management(pointLayer,"INTERSECT",polygonLayer,"","NEW_SELECTION")


with arcpy.da.UpdateCursor(pointLayer,["ADMIN1"]) as cursor:
for row1 in cursor:

row1[0]=row[0]

cursor.updateRow(row1)


On this page of the site you can watch the video online ARCGIS -PRO Creating a python toolbox with a duration of hours minute second in good quality, which was uploaded by the user GIS-Geospatial World 18 July 2020, share the link with friends and acquaintances, this video has already been watched 9,774 times on youtube and it was liked by 57 viewers. Enjoy your viewing!