Код: Выделить всё
import arcpy
schetchiki_path = r'C:\path\to\data\db.gdb\featureclass'
xy = (47.550976, 42.963041)
name = 'Something'
with arcpy.da.InsertCursor(schetchiki_path,['SHAPE@XY', 'Name']) as c:
c.insertRow([xy, name])
Код: Выделить всё
import arcpy
schetchiki_path = r'C:\path\to\data\db.gdb\featureclass'
xy = (47.550976, 42.963041)
name = 'Something'
with arcpy.da.InsertCursor(schetchiki_path,['SHAPE@XY', 'Name']) as c:
c.insertRow([xy, name])
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 2 гостя