160 likes | 372 Views
Using Python for Efficiency and Innovation with ArcGIS. Amy Smith Fehr & Peers @ wolfmapper. Why Use Python with GIS? Because Python is Spatial!. Python + GIS Organizing workflows for reusability Automating common tasks Creating custom tools
E N D
Using Python for Efficiency and Innovation with ArcGIS Amy Smith Fehr & Peers @wolfmapper
Why Use Python with GIS? Because Python is Spatial! • Python + GIS • Organizing workflows for reusability • Automating common tasks • Creating custom tools • Sharing desktop geoprocessing via web applications
Use Case: Using Python in Field Calculations • Example #1: Assigning Random Values to A Field I need to create a sample distribution of average parking duration that will be filled in with data when it becomes available.
Use Case: Using Python in Field Calculations • Example #2: Finding and Replacing Text I want my street labels to read as “Avenue” instead of “Ave”.
Use Case: Using Python in Field Calculations • Example #3: Preparing Tables for Joining The GEOID in my Census geography is numeric, and I need to join it to a table that uses a text data type for the GEOID. The numeric version is missing the “0” that should proceed single-digit state FIPS codes. Can you convert the field to text and add the extra “0” where needed?
Use Case: Standalone Scripts • Example #1: Automated Map Production
Use Case: Standalone Scripts • Example #2: Analyzing and Visualizing NextBus XML Feeds
Use Case: Custom Script Tools • Example: The Placer County Segment Analysis Tool
Use Case: Geoprocessing Services • Example: The Laguna Ridge Dynamic Trips Tool
Use Case: Geoprocessing Services • Example: The Laguna Ridge Dynamic Trips Tool From ArcGIS Desktop Script Tool to Web Geoprocessing Service
Use Case: Geoprocessing Services • Example: The Laguna Ridge Dynamic Trips Tool
Learning More • Books • A Python Primer for ArcGIS Nathan Jennings • Python for Geospatial Development Erik Westra • Learning Geospatial Analysis with Python Joel Lawhead • Programming ArcGIS 10.1 with Python Cookbook Eric Pimpler • Websites • Python.org • ArcPy Café arcpy.wordpress.com • Codecademy codecademy.com • Stack Overflow stackoverflow.com • GIS Stack Exchange gis.stackexchange.com • ArcGIS Forums forums.arcgis.com • Friends (I know you’re out there!)
In Closing • Using Python with ArcGIS Desktop and Server opens up new workflow efficiency and innovation possibilities. • Python also has many other strengths and can be used with open-source toolkits as well (spatial and non-spatial). • There’s a fantastic user community that’s incredibly supportive and geared toward progress.
Thanks! Amy Smith a.smith@fehrandpeers.com @wolfmapper