I have a list of raster files in TIFF format and I want to convert that TIFF to points using raster to point conversion (tool of ArcMap). This tool will convert the raster into a point shapefile. I tried the following code but it did not go through.
import arcpy from arcpy import env env.workspace = "E:/testextract" outpoint = "E:/testextract/hh" field = "VALUE" Rasters = arcpy.ListRasters () for inRaster in Rasters: outpoint = outpoint + "\\"+ inRaster arcpy.RasterToPoint_Conversion (inRaster, outpoint, field)
Can anybody help on this?