Python-1
Python-1
alphansotech.com
SCRIPTING VS PROGRAMMING
• Types
Built-in tools
Model tools
Script tools
Specialized tools
• Categories
System tools - installed as part of ArcGIS
software
Custom tools - script and model tools or other
third party Add-ins
desktop.arcgis.com
TOOL TYPES
desktop.arcgis.com
TOOL CATEGORIES
MODELBUILDER VS PYTHON
desktop.arcgis.com
PYTHON WINDOW IN ARCGIS DESKTOP
• An expression is a value
Ex: 2 * 3 is an
expression returning the
value of 6
• Expressions can be built
using operators and
functions
• Expressions can contain
variables
EXPRESSIONS, STATEMENTS, FUNCTIONS,
METHODS
• A statement is an
instruction to perform
something
Ex: x = 2 * 3
Ex: Print, for, if-then-else,
...
• A statement do not return a
value (exception print)
EXPRESSIONS, STATEMENTS, FUNCTIONS,
METHODS
• Clip
Syntax: arcpy.analysis.Clip(in_features, clip_features, out_feature_class, {cluster_tolerance})
https://pro.arcgis.com/en/pro-app/latest/tool-
reference/analysis/clip.htm
PYTHON BOOKS
PYTHON BOOKS
PYTHON BOOKS