arcpy.CopyFeatures_management(SelectedFeatures,'afilepath\NewFeatures.shp')
arcpy.MakeFeatureLayer_management(feature, feat_lyr) arcpy.SelectLayerByAttribute_management(feat_lyr, 'NEW_SELECTION', query) arcpy.SelectLayerByAttribute_management(feat_lyr, 'SUBSET_SELECTION', query3) result = arcpy.GetCount_management(feat_lyr) print "Number of selected addresses in the layer: " + str(result) #Copy selected features to new feature class if arcpy.Exists(output): arcpy.Delete_management(output) arcpy.CopyFeatures_management(feat_lyr, output) print "Copied selected features from urban points layer to: " + output
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.