3. Introduction
GIS is a system of collecting, preparing, processing,
analysing, interpreting, evaluating and disseminating
geographical data to information.
“Python is an easy to learn, powerful language with high-
level data structures and a simple but effective approach to
object-oriented programming. Python’s elegant syntax and
dynamic typing make it an ideal language for scripting in
many areas and on most platforms.”
4. Why python in Arc GIS
Use scripting to develop, execute, and share geo-
processing workflows
Improves productivity
6. Module used
arcpy.mapping()
arcpy.mapping provides ability to automate updating of
map documents components such as layers, layout elements
without the need of opening every single documents.
7. GUI
Python provides various options for developing graphical
user interfaces (GUIs). We are using Tkinter for our mini
project:
Tkinter: Tkinter is the Python interface to the Tk GUI
toolkit shipped with Python.
10. CORE CODE
if type == "Polygon":
arcpy.ApplySymbologyFromLayer_management(ins_lyr, r"E:kam
haru4th year 2nd sempythonmini_projectdataZones.lyr")
elif type == "Polyline":
arcpy.ApplySymbologyFromLayer_management(ins_lyr, r"E:kam
haru4th year 2nd sempythonmini_projectdataRoads.lyr")
elif type == "Point":
arcpy.ApplySymbologyFromLayer_management(ins_lyr, r"E:kam
haru4th year 2nd sempythonmini_projectdataSettlements.lyr")
11. APPLICATION
This program will be highly applicable when we
are doing same process again and again several
time for similar type of data to obtain similar type
of output