Professional Documents
Culture Documents
Drouin WGISC9317 D3
Drouin WGISC9317 D3
Scott Barbacki,
Niagara College
135 Taylor Road
Niagara-on-the-Lake, ON
L0S 1J0
RE: Deliverable 3 Manipulate Attribute Table for GISC 9317 Advanced Programming for ArcGIS.
Please accept this letter as my formal submission of Deliverable 3 Manipulate Attribute Table for GISC
9317 Advanced Programming for ArcGIS.
Feature classes are a useful tool in organizing information about a single geometric field (either a point,
line or polygon) with a set of attribute fields describing the data. This attribute information allows the user
to visualize and analyze the data associated with that feature. The purpose of the following deliverable is
to create a Python script that creates a new field in a polygon feature class and aggregate a point feature
class using data provided by Niagara College. The aggregated results were then added into the polygon
feature class and the script was timed to ensure efficiency.
Python scripting is an optimal tool to perform the task of manipulating attribute data by providing the user
with an efficient and quick method. A geodatabase was created to house the feature classes and using a join
method, census, farm and county data was combined. “Garbage cleanup” was performed at the end of the
code to ensure that residual data has been deleted. This method was performed through the use of an if not
statement and deletes all data containing underscores.
Should you have any concerns regarding the enclosed documents or if there are any questions please contact
me at your convenience via e-mail at winona.drouin@gmail.com or phone at (905)932-4534. I look forward
to hearing from you.
Warm Regards,
import arcpy
from arcpy import env
import os
import tempfile
import shutil
import time
#Setting variables.
npCsd = r'C:\temp\D3RawData\d3Raw.gdb\npCsd'
npFarm = r'C:\temp\D3RawData\d3Raw.gdb\npFarm'
inputGDB = r'C:\temp\D3RawData\d3Raw.gdb'
outputGDB = r'C:\temp\D3ProcDataDrouinW\d3Proc.gdb'