Python Script in GIS Project
<p>I'm a student in a GIS Programming course.  My professor did not inform me before registering that Python experience would be useful.  I have no experience with Python and need help on this project.  Any examples or clear explanations would be great.  Here is the project:</p>

<p>Make a copy of the FirDepartment.gdb file geodatabase at \cartggp\Geo573&amp;673_Lab\Lab5_Part2
to your computer. Write a python stand-alone script
to get a count of all the single-family homes and multifamily structures in each of the 44
fire response zones: (100 points)</p>

<p>1) Each fire response zone has a corresponding feature class in the database with
name structure âFireBoxMap_idâ. There is also a building footprint feature class,
BldgFoorprints, with a use code field named UseCode (1=single-family,
2=multi- family)</p>

<p>2) First of all, you need to use ListFeatureClasses to create a list object that contains
all the âFireBoxMap_idâ feature classes. Then use a for loop structure to go over
each zone.</p>

<p>3) In the for loop structure for each zone feature class, you need to write codes to
add two new fields to have the counts of single-family and multi-family
buildings. (check the use of AddField geoprocessing tool)</p>

<p>4) Then select all the single-family buildings that are within the zone, get the count,
assign the count to one the two new field for single-family counts; and then
select all the multi-family buildings that are within the zone, get the count, assign
the count to the other new field for multi-family counts. (check the use of
CalculateField geoprocessing tool)</p>

<p>5) Tools you may need:
AddFieldDelimiters for the where_clause
MakeFeatureLayer (set the where_clause to only retrieve only single-family or
multi-family buildings.
SelectLayerByLocation (use âHAVE_THEIR_CENTER_INâ option)
GetCount</p>

<p>Here's what I have on step 2 so far:</p>

<pre><code>import arcpy
import os
arcpy.env.workspace = "D:\Fehr10\Fehr_Python\Datapdf\FireDepartment.gdb"
featureclasses = arcpy.ListFeatureClasses()
</code></pre>

<p>It's not much.  I based this off of an example in GIS's help database.  </p>

<p>Firstly to install an ArcGIS desktop(trial license is required);
The link to get trial license is as below:
<a href="http://www.esri.com/software/arcgis/arcgis-for-desktop/free-trial" rel="nofollow">arcgis trial license</a></p>

<p>Secondly, click help of ArcGIS desktop to go through the help document of arcPy.
As the screenshot below:
<a href="https://i.stack.imgur.com/MBaeM.png" rel="nofollow"><img src="https://i.stack.imgur.com/MBaeM.png" alt="arcpy help in ArcGIS desktop"></a>
Other help documents for python is necessary either.</p>

python gis arcgis