I am currently trying to convert 1 feature class with many rows of polygons into several separate rasters; 1 for each polygon.
For this, i am trying to use Arcpy and the tool Polygon to raster, iterating through the feature class' rows:
cursor10m = arcpy.da.SearchCursor(buff10m, ["ORIG_FID", "SHAPE@", "RASTERVALU"]) for row in cursor10m: arcpy.PolygonToRaster_conversion(row, row, "outraster"+str(row))
When running the script like this, i get the error that the field "43.182" does not exist - 43.182 is the first value in the field "RASTERVALU". I have tried to replace "row" with "RASTERVALU" but the same error happens (it says the field "RASTERVALU" does not exist). It is quite important that the RASTERVALU field value is transferred to the raster.
Do any of you know a smart workaround?