Select to view content in your preferred language

Make point layer with x and y coordinates

628
0
05-07-2014 10:26 AM
NoahHuntington
Deactivated User
I am trying to make point layer using a coordinates x and y values using arcpy.  Ultimately looking to supply arcpy.PointToRaster_conversion() with first parameter which calls for input feature class.  Similar to the following:
        for row in arcpy.da.SearchCursor(Output_polyline_features, ["OID@", "SHAPE@"]):

            # Print the current line ID
            print("Feature {0}:".format(row[0]))

            #Set start point
            startpt = row[1].firstPoint

            #Set Start coordinates
            startx = startpt.X
            starty = startpt.Y

            #Set end point
            endpt = row[1].lastPoint

            #Set End coordinates
            endx = endpt.X
            endy = endpt.Y

        End_Pts = arcpy.MakeXYEventLayer_management()

        #End pts raster
        arcpy.PointToRaster_conversion(End_Pts, "", End_Raster, "MOST_FREQUENT", "NONE", get_LCP(count))


Thanks in advance,

Noah
Tags (2)
0 Kudos
0 Replies