New answers tagged

6

Create a Feature layer and then use Select Layer by location with a polygon of your extent. Example: import arcpy arcpy.env.workspace = r'D:\Arenden_D\Dribbel\Dalsland geodatabas\Dalsland.gdb' fc = r'Dalsland' fcselectionpolygon = r'selection' arcpy.MakeFeatureLayer_management(in_features=fc, out_layer='fclyr') ...


2

I'm not 100% sure, but it looks very much like an old-style Arc/Info Coverage. I clearly remember those having TIC, AAT and BND files. This format is somewhat similar to a file geodatabase, in that they both consist of a folder containing a number of files that make up one or more featureclasses. Their actual (binary) format is entirely different though. ...


1

Field in the Feature to Raster tool must be exposed as a model variable. Right click on the Feature to Raster tool >> Make Variable >> From Parameter >> Field Once you have done that you can then set Raster_%Field%


0

To sum up, this code works, as Michael helped: >>> arcpy.env.overwriteOutput = True fdList = ["Dataset_A", "Dataset_B", "Dataset_C"] folList = ["D:\\GIS_Temp\Folder A", "D:\\GIS_Temp\\Folder B", "D:\\GIS_Temp\\Folder C"] workRange = range(len(fdList)) for thisIndex in workRange: fd = fdList[thisIndex] arcpy.env.workspace = ...


1

This could work, based on answer Michael wrote, but there are still some problems: >>> fdList = ["Datase_A", "Dataset_B", "Dataset_C"] folList = ["D:\\GIS_Temp\Folder A", "D:\\GIS_Temp\\Folder B", "D:\\GIS_Temp\\Folder C"] workRange = range(len(fdList)) for thisIndex in workRange: fd = fdList[thisIndex] arcpy.env.workspace = ...


1

I suspect that your script is failing because the output already exists, to avoid this set overwrite to True, which is easier than check and delete, but may not be what you need in the long run. Putting together your scraps into a contiguous codeblock: # set overwrite = True so it won't crash if # the output already exists arcpy.env.overwriteOutput = True ...



Top 50 recent answers are included