I am trying to export points form a raster using the arcpy's
RasterToPoint_conversion, but I don't want to export all the cells, only the ones with a value of 1.
This is the code:
import arcpy rast_tif = ".......\Local\Loc_rast.tif" out_raster = arcpy.Raster(rast_tif) arcpy.RasterToPoint_conversion(out_raster, '.......\Local\Max_points.shp', "VALUE" == 1)
But returns the error
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 001000: Field: Field 0 does not exist