Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. # Process: Make Asset Feature Layer
  2. arcpy.MakeFeatureLayer_management(asset_wps, Asset_Selection, ""ASSET_TYPE" = 'Secondary Ped' OR "ASSET_TYPE" = 'XFMR'")
  3.  
  4. # Process: Make PC Feature Layer
  5. arcpy.MakeFeatureLayer_management(Proposed_Conductor, PC_Selection, ""CONDUCTOR_" = 'Underground Secondary' OR "CONDUCTOR_" = 'Underground Service'")
  6.  
  7. # Process: Select Layer By Location
  8. arcpy.SelectLayerByLocation_management(Asset_Selection, "INTERSECT", PC_Selection, "1.5", "NEW_SELECTION")
  9.  
  10. matchcount = int(arcpy.GetCount_management(Output).getOutput(0))
  11. print('E1012: {0}').format(matchcount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement