Hello,
I'm trying build a model to calculate a line feature with a conditional but it's not working and e it's returnig an syntax error at the expression line <return !shape.length@kilometers!/40*60>
I don't know what to do, can you guys give me a hand?
def Reclass(TIPO_PAV, CLASSIFICACAO 😞
if (TIPO_PAV=='ASFALTO' and CLASSIFICACAO=='URBANA'):
return 10000
if (TIPO_PAV=='TERRA' and CLASSIFICACAO=='URBANA'):
return 10000
if (TIPO_PAV=='TERRA'):
return !shape.length@kilometers! /40*60
if (TIPO_PAV=='ASFALTO'):
return !shape.length@kilometers!
else:
return 0