Posts

Showing posts from March 28, 2019

Assigning Name to Each Points

Image
1 My python code : import arcpy arcpy.FeatureToLine_management("Closestroute", "Featureline", "0.0001 Meters", "ATTRIBUTES") #Generate points along lines for every 1 km arcpy.GeneratePointsAlongLines_management("Featureline", "splitPoints", "DISTANCE", "1000 Meters", "", "NO_END_POINTS") #Split line at point for every 1 km roads,search radius = 20 meters arcpy.SplitLineAtPoint_management("Featureline", "splitPoints", "split1kpoints", "20 Meters") #I added SS field into splitPoints, then I assigned name for each rows.(s1, s2, s3, ...) cursor=arcpy.da.UpdateCursor("splitPoints","SS") i = 0 for row in cursor: row[0] = 's' + str(i) i +=...