Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
399 views

For loop for access to a directory files in ArcPy

I have a Python Toolbox and I want to use a directory to read different shapefiles. But when I run the script It only works for the first shape. fd is the directory and the code is: fd= parameters[0]....
MikV89's user avatar
  • 343
2 votes
3 answers
716 views

Optimizing arcpy.da.Walk performance?

I'm trying to automate a workflow that currently costs a co-worker about 45 minutes. General run down is this person copies files from a network drive onto a local one, and process it through four ...
geodranic's user avatar
  • 485
1 vote
1 answer
212 views

Filtering out Annotation Feature Classes using arcpy.da.Walk()?

Is there a way to use: for dirpath, dirnames, filenames in arcpy.da.Walk(): to filter out annotation feature classes? The help doesn't specify them as a type, which is strange because using the ...
Mike's user avatar
  • 2,291
0 votes
2 answers
2k views

Merging all feature classes with same name nested in multiple geodatabases using ArcPy?

I am using arcpy and I want to extract a specific feature class called "building" nested in a number of geodatabase within my workspace. Here is the code: import arcpy import os workspace = "C:/...
Wiley Ng's user avatar
  • 115