I have a shapefile, that has lots of individual rows. My goal is simple, to export each row as a raster. I am trying to use SearchCursor, to select each row and perform a feature to raster conversion. However I am not getting the desired output, so I'm wondering where is a mistake (the tool runs, but creates a nonsense big and all the same rasters)
I didn't find any relevant info on how to combine Cursor with geoprocessing tools.
My code so far...
... all the variables, enviroments setting... with arcpy.da.SearchCursor(input_file, ["FID"]) as tab: for count, row in enumerate(tab): arcpy.FeatureToRaster_conversion(input_file, input_field, output_location + str(count) + ".tif", cell_size)
I guess this is not the right way to combine cursors with geoprocessing tools. How can I do this?