Intro to Snake Handling:

Enough Python to be Dangerous

Sam Giebner

Python Anyone?

I love VB.

Why would I use Python?

VB is not supported supported on 64-bit ArcGIS products

Powerful

Easy to learn

Open-source

Cross-platform

Large user community

Consider the Following

9522 LANKINEN RD

953 KELLY TRL

GIS
Secret
Weapon

String split() Method

    
    address.split(str,{num})

str =  Any delimiter (space by default)

num = Number of splits to be made (optional)

9522  LANKINEN  RD

953  KELLY  TRL

    
    address = "9522 LANKINEN RD"
    
    print( address.split(" ") )

["9522", "LANKINEN", "RD"]

(Python list of strings)

Item "9522" "LANKINEN" "RD"
Index 0 1 2
    
    address = "9522 LANKINEN RD"
    
    print( address.split(" ")[1] )

"LANKINEN"

    
    address = "9522 LANKINEN RD"
    
    print( address.split(" ",1) )

["9522", "LANKINEN  RD"]

(Python list of strings)

Item "9522" "LANKINEN  RD"
Index 0 1
    
    address = "9522 LANKINEN RD"
    
    print( address.split(" ",1)[1] )

"LANKINEN  RD"

Calculate Field Values

!STREETNAME!.split(" ",1)[1]

!STREETNAME!.split(" ",1)[1]

www.codecademy.com/learn/python

Python Scripting for ArcGIS

Paul A. Zandbergen

Python  _________?

Slides:

https://slides.com/northpointgis/dangerous-python

Questions?

Sam Giebner

samg@northpointgis.com

218.720.67.47 ext 4

Intro to Snake Handling: Enough Python to be Dangerous

By North Point Geographic Solutions

Intro to Snake Handling: Enough Python to be Dangerous

  • 842