February 2013
Intermediate to advanced
304 pages
6h 45m
English
In addition to using a wildcard to restrict the feature classes returned by ListFeatureClasses(), you can also filter by feature type.
In addition to using a wildcard to restrict the list returned by the ListFeatureClasses() function, a type restriction can also be applied in conjunction with the wildcard or by itself. For example, the following code sample shows the two being used together to restrict the list returned to only polygon feature classes beginning with the letter B. In this recipe, you will restrict the feature classes returned through the use of a feature type parameter along with a wildcard:
fcs = arcpy.ListFeatureClasses("B*", "Polygon")Read now
Unlock full access