Field Calculator


Deprecated: Constant E_STRICT is deprecated in /home/dogtaton/public_html/giswiki/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /home/dogtaton/public_html/giswiki/includes/parser/Preprocessor_DOM.php on line 803

Deprecated: Constant E_STRICT is deprecated in /home/dogtaton/public_html/giswiki/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Constant E_STRICT is deprecated in /home/dogtaton/public_html/giswiki/vendor/mediawiki/at-ease/src/Functions.php on line 48
From GIS Wiki
Revision as of 21:00, 18 February 2013 by 129.120.6.150 (talk) (Created page with "Useful functions for the field calculator. ===Situs from components (python)=== Pre-logic: <pre>def concat_address(lnum, hnum, sdir, sname, stype): outstr = lnum if hn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Useful functions for the field calculator.

Situs from components (python)

Pre-logic:

def concat_address(lnum, hnum, sdir, sname, stype):
    outstr = lnum
    if hnum <> "0":
        outstr += "-"+hnum
    if sdir.isalpha():
        outstr += " "+sdir
    outstr += " "+sname+" "+stype
    return outstr

field =

concat_address(!LO_ADDRESS!, !HI_ADDRESS!, !STDIR!, !STNAME!, !STTYPE!)