Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Help with arcpy.ListDatasets

$
0
0
I am simply trying to create a list of all the features within a geodatabase. It seems easy enough, but here is what happens with my script:

Code:

>>> import arcpy
>>> from arcpy import env
>>> arcpy.env.workspace = "C:\E1B8\Grid_Create_Update_11-2013\CalcMiles.gdb"
>>> datasetList = arcpy.ListDatasets("*", "Feature")
>>> len(datasetList)
0

My geodatabase contains various features, but as you can see my code creates an empty list. What am I missing?

Thanks!

Viewing all articles
Browse latest Browse all 2485

Trending Articles