Monday, June 24, 2013

Week 5/6 - Python GeoProcessing
GIS 4102
 
Week 5 - Review
 
Week 6 - Module 5 - Python GeoProcessing
 
This week we worked with Python Script and Geoprocessing.  The screenshot above was taken after a series of code was run to Add XY Coordinates to the hospitals shapefile, then create a 1000 meter buffer around the hospital locations, and finally Dissolve the buffers created into a single feature.  All three of these tasks were completed using python script.  The results were then printed in the interactive window to show that the tools completed their parameters successfully.
 
I can see how a python code can be written to complete routine series of tasks and all that would need to be modified is a few parameters.  I also discovered that using code that was previously written saves both time and cuts down on syntax errors.
 
Overall I definitely am coming away with something that I can use in my current position, and look forward to further growth in Python Script.


Monday, June 10, 2013

Week 4 - Participation 1
GIS 4102
 
GIS can be used in a number of different ways.  The Town of Mooresville, North Carolina utilized GIS to assist them with a stinky situation.  In 2010 the town discovered they were having a problem with an increasing number of overflows and stoppages in their Sanitary Sewer System.

The Mooresville Water/Sewer Maintenance Department (WSMD) reached out to their Engineering Department for a solution to meet the requirement set by the North Carolina Department of Environment and Natural Resources.  This requirement involved the cataloging of the cleaning and maintenance of all sewer lines on a regular basis to identify troubled areas.  Cataloging their findings in Excel spreadsheets, the WSMD logged the cleaning data for the entire month and dates for when the sewer features were cleaned.  They gave each manhole a unique identifier to associate it with a matching manhole on the GIS map.

Then utilizing Python scripting, they were able to simplify the repetition of the steps required to create the cleaning data.  Python script was made available to all ArcGIS users to do analysis on the data which allowed them to determine the number of sewer mains cleaned as well as the total lengths.

The analytical data that was collected was then used to determine “hot spots” that were cleaned seven or more times in the previous year.  This allowed the WSMD staff to work with other departments to isolate and monitor locations that were repeatedly cleaned.  Overall the WSMD saw an increase in productivity by 26% and a decrease of stoppages in gravity main lines throughout town.  This in turn, through the use of technology and teamwork, has saved the WSMD money as well as cut down on overtime.

Town Shapens Proactive Sewer System Management
By Alan Saine, Civil Engineer, Town of Mooresville, North Carolina
ArcNews Fall 2012


Saturday, June 8, 2013

Week 4 - Python Fundamentals II
GIS 4102
 
 
 
This weeks exercises and lab assignments reinforced the use of modules, writing conditional statements, using loop structures, correcting script errors, as well as how to write comments within scripts to help with readability and descriptions.
 
The above results are from this weeks lab assignment where I worked with a script to play a dice game.  The dice game was then followed by a sequential numbering from 0 to 5 utilizing a while loop.  The dice game script itself was provided to me and I was asked to use it as a method to reinforce my ability to identify and correct errors in scripts.  I utilized both my own knowledge of script writing, and the check feature provided to me in the Python Win software application.
 
Overall this weeks lab helped build a strong foundation for my Python skills to improve upon.



Saturday, June 1, 2013

Week 3 - Python Fundamentals I
GIS 4102
 
This week the class looked closely at the foundation and building blocks of Python script.  We looked at using variables, strings, lists, functions, methods, math equations, as well as conditional statements.
 
The screenshot above is the results of a python script that I wrote.  In the script I was tasked with identifying my full name, breaking down that full name string into a list, identifying my last name from that list, and printing the result.  From there the script went on to identify how many characters made up my last name and multiplied that by the value of 3.  The script then printed the results of that equation.
 
The results were:
 
Griswold
24
 
This was a great opportunity to utilize all the Python features we have learned up to this point.  I am excited to see what is next.
 

Friday, May 24, 2013

Week 2 - Geoprocessing in Arc
GIS 4102
 
 
 
This week we worked on ModelBuilder and the functionality of it within ArcGIS.  We also exported Python script from ModelBuilder as well.  These functions were saved within Toolboxes and then compressed to be shared with others.
 
In the above image, I utilized data provided to create a model that would select all the soils that were considered "Not Prime Farmland" and with those results erase portions of the basin shapefile so that the remaining shape excluded those areas identified as "Not Prime Farmland". 
 
Week 2 really expanded my knowledge on ModelBuilder and the capabilities it has within ArcGIS to allow me to return results.  It also gave me my first opportunity to create a working GIS script and generate output from geoprocessing tools.


Friday, May 17, 2013

Intro to Python - Week 1
GIS 4102
 

 
 
The first week of the summer semester at UWF begins with my introduction to Python.  Python is both a scripting language as well as a programming language; however for this class we will be focusing in on the scripting aspect of things.  Our first module provided me with a script that can seen in the screenshot above.  Its results can be seen on top of the scripting window and after being run, created a series of folders that we will be utilizing in the GIS Programming course this semester. 
 
With the script loaded I ran it by clicking on the running man icon, although I could have pressed ctrl-r or browsed to the function by going to File and selecting Run.  The process ran and created the desired output.  In the interactive window I saw that the script was completed as it displayed a text message saying "Process Complete"
 
The use of hotkeys can also speed up the process of writing script.  I am going to make a concerted effort to identify commonly used feature hotkeys for the Python window interfaces used in this semester.

Thursday, May 2, 2013

Final Project
GIS 4043/L
 
 
 
For our final project in the Intro to GIS Class I was tasked with taking on the role of a GIS analyst working with Florida Power and Light (FPL).  The task was to analyze and determine a number of factors in regards to the Bobwhite-Manatee Transmission Line Project.  Among these analyses was to determine the environmental impact, parcel and homes affected as well as schools and daycare centers.  Finally we were also tasked with identifying the length of the preferred corridor and providing a cost analysis.  The following links are to the presentation as well as the slide by slide commentary.