import arcpy from arcpy import env arcpy.env.workspace = r"C:\GIS\Projekti\Divaca_Ber_10ocen_met9\Testno\script" outworkspace = r"C:\GIS\Projekti\Divaca_Ber_10ocen_met9\Testno\script\point" rasterlist = arcpy.ListRasters("*") for raster in rasterlist: arcpy.RasterToPoint_conversion(raster, outworkspace + "//" + str(raster) + ".shp", "VALUE")
#import libraries import arcpy from arcpy import env #set environments arcpy.env.workspace = r'[file path to where your rasters are stored] outworkspace = r'[file path to where you want to save outputs] #create list rasterlist = arcpy.ListRasters("*") #loop thru list for raster in rasterlist: arcpy.RasterToPoint_conversion(rasterlist, outworkspace + "//" + str(raster) + "_point", "VALUE") #this confirms you are looking at the VALUE field of the raster, and calling the output file the same name as the raster, appended by _point. del outworkspace, raster, rasterlist
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.