Harnessing Python
Upcoming SlideShare
Loading in...5
×
 

Harnessing Python

on

  • 728 views

2013 Esri International User Conference Lightning Talk

2013 Esri International User Conference Lightning Talk

Statistics

Views

Total Views
728
Views on SlideShare
485
Embed Views
243

Actions

Likes
1
Downloads
6
Comments
0

2 Embeds 243

http://www.blueraster.com 242
http://26c.733.myftpupload.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Harnessing Python Harnessing Python Presentation Transcript

  • Harnessing Python Blue Raster @blueraster - blueraster.com/blog Brendan Collins @brendancol - bcdcspatial.blogspot.com
  • Gui do van Rossum | Cr eat or of Pyt hon | Benevol ent Di ct at or f or Li f e
  • Pr ogr ammi ng f or ever ybody • Designed as a teaching language – Heavily influenced by ABC (dead language) – “Perfect language for beginners and non- programmers” – Adopted by MIT as primary course language • Integrated into ArcGIS Suite in the 9.x series • Matured nicely in ArcGIS 10.x series View slide
  • You Al r eady Use Pyt hon… View slide
  • Hello C# using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace hello.world { class Hello { static void Main() { System.Console.WriteLine( “Hello C#!“ ); } } }
  • print ‘Hello Python!’
  • open(‘C:fileName.txt’, ‘r’)
  • Visit documentation help.arcgis.com docs.python.org/2/using
  • 8. A language for all seasons • Object-oriented; functional; procedural • Desktop; Web; Mobile;
  • School Boundaries Geodatabase US Department of Education • Effort to collect every school attendance polygon in the country • Using Python for: – Fuzzy joining of attributes (fuzzy wuzzy library) – Standardizing boundary geometry (arcpy) – QA/QC (arcpy)
  • Emammal Smithsonian Institute • Tool to assist citizen scientists collect and analyze wildlife photo • Uses Python to combine: – EXIF metadata read/write (exiftool) – Thumbnail generation (PIL) – Database connections (django) – Amazon Web Services (boto)
  • Spatial Data Repository Measure DHS / USAID • Tool to dynamically create compressed, downloadable packages of spatial data • Use Python for: – Fancy clip, zip, ship (arcpy) – Automation of ArcGIS tools (arcpy) – Enrichment with using legacy database. (urllib2) – Published as Geoprocessing Service (ArcGIS Server)
  • In conclusion… • If you work with data, work w/Python • Esri’s arcpy library has matured: – data access module is fast – Python toolboxes rock • Python Resources: – Core Python by Wesley Chun – Follow @pypi on twitter!
  • Thank You. Visit us at www.blueraster.com! Blue Raster @blueraster - blueraster.com/blog Brendan Collins @brendancol - bcdcspatial.blogspot.com