arcgis python ValueTable使用

This link: HTTPS: //blog.csdn.net/A873054267/article/details/86007125
 # multivalue parameter targeting
 
. 1 Python List Type

 2 string type, separated by commas

 . 3 ValueTable type 

Import ArcPy
 the try : 

    arcpy.env. Workspace = R & lt ' C: \ ArcpyBook \ Data ' 

    vTab = arcpy.ValueTable () 

    vTab.setRow (0, " . 5 " ) 
    vTab.setRow ( . 1, " 10 " ) 
    vTab.setRow ( 2, " 20 is " ) 

    inFeature = 'Hospitals.shp ' 
    outFeature = ' HospitalMBuff.shp ' 
    dist = vTab 
    bufferUnit = " meters " 

    arcpy.MultipleRingBuffer_analysis (inFeature, outFeature, dist, bufferUnit, ' ' , ' ALL ' )
     Print ( " the Multi-Ring Buffer Complete " )
 the except Exception E aS:
     Print (e.message)
---------------- 
Disclaimer: This article is CSDN blogger "a873054267" of the original article, follow the CC 4.0 BY- SA copyright agreement, reprint Please include links to the original source and this statement. 
Original link: https://blog.csdn.net/A873054267/article/details/86007125

 

Guess you like

Origin www.cnblogs.com/gisoracle/p/11530369.html