Friday, August 4, 2017

GIS Programming (GIS5103): Module 11


In this week's module, we learned how to share tools that we created for ArcMap. The first way of sharing an ArcPy script tool is compressed the original folder that houses the script into a .zip file. The second way is putting the tool files on the local network (this is only relative if you are on shared network environment). The third way is to publish the toolbox as a geoprocessing service which can be publically assessable to anyone on the Internet.  We also learned how to embedded our scripts into the script. By embedding the script into the script tool, you can share the toolbox file instead of a .zip file which has three different files or more. Another benefit of embedding the script is that you can place a password on the script to prevent people from editing or viewing the script.

Some of the highlights of what I learned this semester:


1.       I think the interesting thing I learned in this class was in Module 9. I thought that using the Python script to find areas that had certain characteristics by using parameters, such as, slope, aspect, and landcover type was a great way to cut the time of finding each of these characteristics. It was kind of fun having a script that able to perform multiple functions.

2.       The most useful thing that I learned was making sure that the line of code was in the right location in the script because certain lines of code should not be placed in the for loop. I found this out when I was working on Module 8’s script; I was trying to print each point’s Feature OID, Vertex ID, X coordinate, Y coordinate, and the name of the river feature.

No comments:

Post a Comment