Mar-23-2018, 10:53 PM
i have a folder containing 5 shapefiles (.shp). the problem wants me to list the 5 files and the geometry type (point, line, or polygon)
EX: counties.shp is a polygon feature class
the output should be a total of 5 sentences.
______.shp is a ______ feature class
______.shp is a ______ feature class
______.shp is a ______ feature class
______.shp is a ______ feature class
______.shp is a ______ feature class
the code im using for the list is:
EX: counties.shp is a polygon feature class
the output should be a total of 5 sentences.
______.shp is a ______ feature class
______.shp is a ______ feature class
______.shp is a ______ feature class
______.shp is a ______ feature class
______.shp is a ______ feature class
the code im using for the list is:
featureclasses = arcpy.ListFeatureClasses({all}, {all}) print featureclassesthat code is good. the code i started to use as an example is:
desc = arcpy.Describe("cities.shp") print desc.shapeTypethis code works too. i just need a little advice on how to put this whole thing together. thanks.