0% found this document useful (0 votes)
25 views

Assignment (50 Marks) : Explain What Each Line of Code Does (10 PT)

The document outlines an assignment that asks students to define key GIS concepts like functions, scripts, and software programs. It also asks students to explain the purpose of Python lists and how to create data-driven pages and mapbooks using ArcPy. Finally, it provides a short code sample and asks students to explain what each line is doing. The assignment covers core ArcGIS and Python programming topics through definitions, explanations, and code interpretation.

Uploaded by

BICHAKA MELKAMU
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Assignment (50 Marks) : Explain What Each Line of Code Does (10 PT)

The document outlines an assignment that asks students to define key GIS concepts like functions, scripts, and software programs. It also asks students to explain the purpose of Python lists and how to create data-driven pages and mapbooks using ArcPy. Finally, it provides a short code sample and asks students to explain what each line is doing. The assignment covers core ArcGIS and Python programming topics through definitions, explanations, and code interpretation.

Uploaded by

BICHAKA MELKAMU
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment (50 Marks)

1, What is a function?(4pt)

2, Explain some arcpy function with Examples (clip, Buffer, Intersect)?

3, what is a script? (4pt)

4, Disscuss the difference between a script and software program? (4pt)

5, Explain the purpose of a python List with Examples? (4pt)

6,How to create datadriven pages and Mapbook with ARCPY(refer


ARCGIS Desktop help)? (10pt)

7,Explain the importance of Get parameter as text function with


Example?(10pt)

8, Explain what each line of code does (10 Pt)

import arcpy

from arcpy import env

env. Workspace = "C:/python_exercise"

fclist = arcpy.ListFeatureClasses()

for fc in fclist:

fcdescribe = arcpy.Describe(fc)

print "Name: " + fcdescribe.name

print "Data type: " + fcdescribe.dataType

You might also like