Convert txt to xyz files using hypack

broken image
broken image
broken image

Workspace = 'C:/data' try : # Set the local variables in_Table = 'firestations.dbf' x_coords = 'POINT_X' y_coords = 'POINT_Y' z_coords = 'POINT_Z' out_Layer = 'firestations_layer' saved_Layer = r'c:\output\firestations.lyr' # Set the spatial reference spRef = r'Coordinate Systems\Projected Coordinate Systems\Utm\Nad 1983\NAD 1983 UTM Zone 11N.prj' # Make the XY event layer. MakeXYEventLayer_management ( in_Table, x_coords, y_coords, out_Layer, spRef, z_coords ) # Print the total rows print ( arcpy.

broken image

GetCount_management ( out_Layer )) # Save to a layer file arcpy. SaveToLayerFile_management ( out_Layer, saved_Layer ) except Exception as err : print ( err.

broken image