For the assignment, we were to take the hospitals.shp layer from the Data folder and first write a script that added XY coordinates to it. Then we were to create a 1000' buffer on it, and from there, dissolve the buffer into a single feature. It's a little tedious making sure every part of the script is correct, but overall, this one was a fun learning experience. Here are the results of my script:
Thursday, June 19, 2014
Module 5: Geoprocessing Using Python
This week's assignment familiarized us with running geoprocessing tools in Python. This one went much smoother than last week's, and was pretty enjoyable to work through.
Friday, June 13, 2014
Module 4: Python Fundamentals Part II
This week's assignment was a rough go. It started out simple enough, in the first two steps we were to import a random module and then find and correct two errors in a loop that was already written.
Then in step 3 we were to create a 'while' loop that added 20 random numbers to a blank list. This is where it got tough. After two days of trial and error and intense reading and rereading, I finally got it. Then it was on to step 4, where we were to write a code that created an unlucky number and removed it from the list. This was also tricky, but not quite as time consuming as step three. This was my final result:
Then in step 3 we were to create a 'while' loop that added 20 random numbers to a blank list. This is where it got tough. After two days of trial and error and intense reading and rereading, I finally got it. Then it was on to step 4, where we were to write a code that created an unlucky number and removed it from the list. This was also tricky, but not quite as time consuming as step three. This was my final result:
Friday, June 6, 2014
GIS Programming Module 3
In this week's lab, the assignment was to write a script using our entire name. It started with a string, and from there we were to split, index, and use math functions to ultimately figure out the number of characters in our last name, multiplied by three.
Although it took me two attempts to get it to work in PythonWin, it was a fairly easy assignment. Here is a screenshot of my finished product:
Although it took me two attempts to get it to work in PythonWin, it was a fairly easy assignment. Here is a screenshot of my finished product:
Subscribe to:
Posts (Atom)