Accessing the Spatial Analyst extension
The Spatial Analyst extension is very important for performing analysis on both raster and vector datasets, but it is generally used to perform surface analyses and raster math. These operations are made even easier by the use of ArcPy, as all of the tools available in the Spatial Analyst toolbox are exposed with the Spatial Analyst access module. This includes the raster calculator tools, making map algebra easy by using the tools and operators in simple expressions.
Adding elevation to the bus stops
The elevation raster, sf_elevation
, has been downloaded from National Oceanic and Atmospheric Administration (NOAA), and added to the Geodatabase
file. However, it covers the city of San Francisco, and we should write a script to only extract an area of the neighborhood of San Francisco, as it will reduce the time needed to run our scripts. We'll use an SQL statement as the where clause to limit the results to the South of Market (SoMa) neighborhood. To...