Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about ArcGIS Python Parser for labelling expressions and field calculations
8
votes
Accepted
Using Calculate Field for If statement over many fields?
Run the field calc on the Summary field. Use Python as the parser and check the Show Codeblock box.
For the Pre-Logic Script Code put:
def Reclass(B, C, D, E):
if None not in (B, C, D, E) and "" …
7
votes
Accepted
Removing first and third zeros of a fieldname in label expression
Use Python as the parser, and check the Advanced box. Then just replace yourFieldName with the name of the field you want to label.
def FindLabel([yourFieldName]):
value = [yourFieldName]
f …
7
votes
Accepted
Using Python Parser in ArcGIS Field Calculator to compare two fields?
Just put this as the script code:
def Recode(LV, IV):
if LV < IV:
return 1
elif LV == IV:
return 2
elif (LV > IV and LV < (IV * 2)):
return 3
elif LV > (IV * 2 …
4
votes
Accepted
Lists in field calculator in ArcMap?
You could just check if your field value is in the remove list:
def remove_zero(field):
remove_list = ['01ST', '02ND', '03RD', '04TH', '05TH', '06TH', '07TH', '08TH', '09TH']
if field in re …
8
votes
Accepted
SyntaxError from Python Label Expression in ArcMap?
You currently have:
lineone = "A:" + [NUMBER] but [NUMBER] isn't defined anywhere.
Any fields that you want to use in the expression, you need to include as a parameter to the function.
So, it look …