Book Image

ArcPy and ArcGIS: Geospatial Analysis with Python

Book Image

ArcPy and ArcGIS: Geospatial Analysis with Python

Overview of this book

Table of Contents (19 chapters)
ArcPy and ArcGIS – Geospatial Analysis with Python
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a model and exporting to Python


This chapter will depend on the downloadable SanFrancisco.gdb file geodatabase, available from the Packt Publishing website. The San Francisco GDB contains data downloaded from data.sfgov.org and the US Census' American Factfinder website available at factfinder2.census.gov. All census and geographic data included in the geodatabase is from the 2010 census. The data is contained within a feature dataset called SanFrancisco. The data in this feature dataset is in NAD 83 California State Plane Zone 3 and the linear unit of measure is the US Foot (this corresponds to SRID 2227 in the European Petroleum Survey Group, or EPSG, format).

The analysis we will create with the model, and eventually export to Python for further refinement, will use bus stops along a specific line in San Francisco. These bus stops will be buffered to create a representative region around each bus stop. The buffered areas will then be intersected with census blocks to find out...