Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Bugs in script to populate an empty attribute field

$
0
0
Here is a copy of my script.

Attachment 26766

I am attempting to populate a blank field (Veg_Height) in my shapefile attribute table with text of my own choosing depending on the value in field Class_name.

e.g. if Class_name = "Grass", change the blank Veg_Height field to "Short", if Class_name = "Trees", change the blank Veg_Height field to "Tall" etc.

Unfortunately, at the moment, I keep getting errors when I try to run this in model builder. Can anyone suggest any changes I could make?

Thanks :)
Attached Thumbnails
Click image for larger version

Name:	python.jpg‎
Views:	N/A
Size:	32.0 KB
ID:	26765   Click image for larger version

Name:	python.jpg‎
Views:	N/A
Size:	32.4 KB
ID:	26766  

Viewing all articles
Browse latest Browse all 2485

Trending Articles