SHARE
TWEET

Untitled

a guest Nov 14th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. arcpy.FeatureVerticesToPoints_management(selectFCP, tempPtName, "ALL")
  2. with arcpy.da.SearchCursor(selectFCP, "SHAPE@") as cursor:
  3.     for row in cursor:
  4.         arcpy.FeatureVerticesToPoints_management(row, tempPoint, "ALL")
  5.         arcpy.SpatialJoin_analysis(tempPoint, tempPtName, tempPtJoin, "", "KEEP_ALL", "", "ARE_IDENTICAL_TO")
  6.    
  7. with arcpy.da.SearchCursor("parcel_area_input", ["SHAPE@", field]) as cursor:
  8.     for row in cursor:
  9.         arcpy.FeatureVerticesToPoints_management(row[0], tempPoint, "ALL")
  10.         arcpy.AddField_management(tempPoint, field, "TEXT", "", "", "240")
  11.         arcpy.CalculateField_management(tempPoint, field, "row[1]", "PYTHON")
  12.         arcpy.Append_management("tempPoint", "fixPointsTEST", "NO_TEST")
  13.    
  14. with arcpy.da.SearchCursor("parcel_area_input", ["SHAPE@", field]) as cursor:
  15.     for row in cursor:
  16.         exp = "'%s'" % (row[1])
  17.         arcpy.FeatureVerticesToPoints_management(row[0], tempPoint, "ALL")
  18.         arcpy.AddField_management(tempPoint, field, "TEXT", "", "", "240")
  19.         arcpy.CalculateField_management(tempPoint, field, exp, "PYTHON")
  20.         arcpy.Append_management("tempPoint", "fixPointsTEST", "NO_TEST")
RAW Paste Data
Top