Tuesday, July 16, 2013

GIS Programming, Lab 7: Geometry & Rasters

This week we had to write two scripts.  The first one was to create a text file that would print out the Object ID and coordinates of the vertices of each shape.  In this case, it was a "rivers" shapefile in Hawaii. 


A screenshot of my text file which displays the ObjectID, coordinates and name of the river/stream.

The second script we had to write created a new raster based on specific criteria pulled from an elevation raster and a landcover raster.  In this case, we pulled out specific forested areas.  This script took a lot of time to figure out and used various modules including relcass, slope and raster and used the spatial analyst extension.

Final raster created from taking specific criteria from two other rasters and saving it into a newly created gdb

This week took a lot of patience, trial and error and aid from classmates and the professor.  It was definitely rewarding once I was successful though.

No comments:

Post a Comment