首页 > 编程语言 > 详细

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

时间:2019-11-03 13:37:58      阅读:81      评论:0      收藏:0      [点我收藏+]

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'

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!