AnsweredAssumed Answered

python script for renaming attributes

Question asked by Tilottama1179 on Jun 29, 2012
Latest reply on Jul 2, 2012 by Tilottama1179
Hi,

I am trying python scripting for the first time and couldn't achieve what I am trying to do.

So, I have five types of Landcover - Drain, Lake, River, Water Body, and Canal. I want to name all of these 'Water'.

I figured that I could do it with this small script- !LANDCOVER!.replace("River","Water") in Field Calculator.

But, I would want to do all of them together using a python script in the 'Field Calculator'. I tried with some if, else statements, but they didn't work.

Can someone please help me with this?

I will look forward to your response.

Thanks in advance,

Tilottama

Outcomes