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
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.