自己创建了一个“自动发布影像服务的脚本”,桌面运行成功,但是要发布为Web tool时报错:有损坏的数据源
我自己写了一个python脚本,用于自动发布影像服务,脚本如下:
脚本工具界面如下:
工具成功运行后,我准备发布为Web tool,但是分析会报错,如下:
我不知道这个报错到底是什么出问题了,应该如何解决这个问题?
问题补充:
参数执行界面填写内容:
AGS创建参数:
#创建Arcgisserver连接
# connection_type = "ADMINISTER_GIS_SERVICES"
# out_folder_path = r'E:\1_地图文档\3_政府上传影像数据管理\result'
# out_name = 'test.ags'
# server_url = r'https://portal.shaanxieco.com/server/admin'
# use_arcgis_desktop_staging_folder = False
# staging_folder_path = r'C:/Project'
# username = '用户名'
# password = '密码'
#CreatAGSFile(connection_type,out_folder_path,out_name,server_url,use_arcgis_desktop_staging_folder,staging_folder_path,username,password)
脚本工具界面如下:
工具成功运行后,我准备发布为Web tool,但是分析会报错,如下:
我不知道这个报错到底是什么出问题了,应该如何解决这个问题?
问题补充:
参数执行界面填写内容:
AGS创建参数:
#创建Arcgisserver连接
# connection_type = "ADMINISTER_GIS_SERVICES"
# out_folder_path = r'E:\1_地图文档\3_政府上传影像数据管理\result'
# out_name = 'test.ags'
# server_url = r'https://portal.shaanxieco.com/server/admin'
# use_arcgis_desktop_staging_folder = False
# staging_folder_path = r'C:/Project'
# username = '用户名'
# password = '密码'
#CreatAGSFile(connection_type,out_folder_path,out_name,server_url,use_arcgis_desktop_staging_folder,staging_folder_path,username,password)
1 个回复
许丹石
赞同来自:
我看一下你的所有的参数怎么填的。请截图执行之前所有参数的填写。
要回复问题请先登录或注册