Daphnagl

Field calculator Python script

Discussion created by Daphnagl on Jan 7, 2014
Latest reply on Jan 8, 2014 by Daphnagl
HI,
I am trying to build a model that after doing spatial join
it will give values to new fields according to the spatial join data.

I am combining a Point layers with VegStructure polygones and then I want to get the values of the VegStrcture as 0/1:

def  Reclass(Conifers):
if (Uniclass) = Conifers:
  return 1 
else:
  return 0




I am using the calculate field tool in the Model-Builder but the code is not right-
and I don't know how to identify the problem (I am not experianced with script writing).

Thanks,
Daphna

Outcomes