New answers tagged

1

This works for me if you are trying to access sde feature classes wrkspc = r"D:\Projects\DotNetDataLoader\Connection to xxx.xx.x.xxx.sde" arcpy.env.workspace = wrkspc listds = arcpy.ListDatasets("*"): for ds in listds: listfc = arcpy.ListFeatureClasses("*","",feature_dataset=ds) for fc in listfc: print fc


1

Building on @KHibma's answer, the data access cursor has the token SHAPE@JSON which can be used to check for curves without importing the json module. with arcpy.da.SearchCursor ("InputFeatures", ["OID@", "SHAPE@JSON"]) as curs: for oid, json in curs: if "curve" in json: print "{} is curved".format (oid)


Top 50 recent answers are included