I have a problem with the
whereclause on python for
I try to use a variable for condition:
for row_stat in rows_stat: % for calculated the variable"maxi" maxi= row_stat.MAX_GRID_CODE % for calculated the variable"maxi" del rows_stat % for calculated the variable"maxi" where = '"GRID_CODE" = maxi' % whereclause arcpy.Select_analysis("point_acc.shp", "point_max.shp", where)
Ofcourse, I get an error message telling me that 'maxi' can't be found in "point_acc.shp" but I don't want 'maxi' but the number in the variable maxi!
Who can help me write this?