码迷,mamicode.com
首页 > 编程语言 > 详细

python TypeError: unsupported operand type(s) for +: 'geoprocessing value object' and 'str'

时间:2019-11-03 12:27:27      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:rand   obj   ram   ESS   opera   highlight   ssi   space   support   


TypeError: unsupported operand type(s) for +: geoprocessing value object and str 
 if self.params[0].value:
        mypath=self.params[0].value #
        cpath=mypath+os.sep+dataset
        arcpy.env.workspace =cpath
修改如下:
 if self.params[0].value:
        mypath=str(self.params[0].value) #
        cpath=mypath+os.sep+dataset
        arcpy.env.workspace =cpath

 

python TypeError: unsupported operand type(s) for +: 'geoprocessing value object' and 'str'

标签:rand   obj   ram   ESS   opera   highlight   ssi   space   support   

原文地址:https://www.cnblogs.com/gisoracle/p/11785622.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!