I try draw line between points, but on map i dont see results
input_table = r"C:\Users\Admin\table.csv"
out_lines = r"C:\Users\Проект.gdb\Результат"
#XY To Line
arcpy.management.XYToLine(input_table,out_lines,
"LOND1","LATD1","LOND2",
"LATD2","GEODESIC","idnum")
table.csv
idnum;LOND1;LATD1;LOND2;LATD2
1;47.43388800000008;42.983686000000034;47.43402500000008;42.98425700000007
2;47.43412900000004;42.98377300000004;47.43314600000008;42.981682000000035
3;47.433530000000076;42.983711000000085;47.43436800000006;42.985129000000086
Outline is not created. How it create?
What do you mean by outline? You can change the symbology as the respective ArcGIS Pro tab.
Sorry, no outline. I mean - feature out_lines is not created on map
I not see this feature in project
ok. In ArcGIS Pro/ ArcMap Catalog window, navigate to
C:\Users\Проект.gdb
Do you see Результат? If yes, drag and drop it into your map window.
XY To Line (Data Management)—ArcGIS Pro | Documentation
requires a table of the appropriate structure
it won't take a semi-colon separated csv file as input, you need to make convert it into a geodatabase table first
Add some changes. Code works, but in arcgis i dont see changes
# -*- coding: utf-8 -*-
import arcpy
import os
import json
arcpy.env.workspace = r"C:\Project.GDB"
from arcpy import env
featureList = []
input_table = r"C:\Users\Admin\table.csv"
out_lines = r"C:\Project.GDB\Результат"