帖子
|
当我在ArcGIS Pro的python窗口中运行以下脚本时,ArcGIS Pro崩溃了。导入arcpy, arcgis, numpy, OS arcpy.env。overwriteOutput=True proxyHost = "http://some.proxy.some-company.de" proxyPort = "80" #门户连接cloudUrl = "https://www.some-company.de/arcgis" cloudUser = "contentcreator" cloudPwd = "somepassword" cloudPortal = arcgis。GIS(url=cloudUrl, username=cloudUser, password=cloudPwd, proxy_host=proxyHost, proxy_port=proxyPort) ArcGIS Pro崩溃在我的代码的最后一行。我想调用的门户是一个本地安装的ArcGIS企业实例,在webadaptor后面有一个portal for ArcGIS (version 10.9)。ArcGIS Pro版本为2.9.2。关于崩溃的Windows事件数据:ArcGISPro.exe 2.9.2.32739 61fd3020 python37.dll 3.7.11150.1013 60fb68a6 c00000fd 000000000020af66 1504 01d8384b07d79d1d C:\Program Files\ArcGIS\Pro\bin\ ArcGISPro.exe C:\Program Files\ArcGIS\Pro\bin\Python\envs\ arcgispro-py3\python37.dll d4281c47-ed6a-46bc-8db8-6569a208d0de我的脚本的目的是自动上传创建的mmpk文件到门户,像这里:https://github.com/WestonSF/ArcGISEnterpriseToolkit/blob/master/CreateMobileMapPackage.py有人有一些建议为什么ArcGIS Pro崩溃,我怎么能解决这个问题?
...查看更多
03-15-202202:34我
|
0
|
1
|
351
|
帖子
|
It works as expected. So now i like to set the caption and tooltip of this button with a string from a resource file like in a XAML file. Is there a way to do this in the DAML file? With {x:Static Resources.ButtonCaption_SaveMetadataPDF} it does not work.
Regards
Christian -->
您好,我使用ArcGIS Pro 2.7 SDK创建了一个小的AddIn。在DAML文件中,我在一个模块中定义了一个按钮,如下所示:
06-23-2021上午09:26
|
0
|
1
|
683
|
帖子
|
哦,我会添加这样的东西:if (item != null){//…另一个代码},因为如果对象不能转换为“as”,结果是空值。把基督教
...查看更多
02-09-2021上午07:27
|
0
|
1
|
1209
|
帖子
|
很抱歉回复晚了。这就是我要找的。非常感谢!这是我的代码:private string _SDEextension = ".sde";受保护的异步覆盖无效OnClick() {GDBItem项目= ProApp。ContextMenuDataContext as GDBItem;if (!string.IsNullOrWhiteSpace(item.Path)) {if (!item.Path. contains (_SDEextension))消息框。Show("Only SDE database .");else{//清除路径直到以. SDE结尾(仅用于SDE必需)。string geodatabasePath = item.Path;而(! geodatabasePath.EndsWith(”。sde", stringcompare . ordinalignorecase)) {string[] split = geodatabasePath. sde", stringcompare . ordinalignorecase)) {string[]Split(new string[] {"\\"}, StringSplitOptions.None); geodatabasePath = geodatabasePath.Replace(string.Concat("\\", split.Last()), string.Empty); } await QueuedTask.Run(() => { //Open the SDE database and access the table where all items are defined. using (Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri(geodatabasePath)))) { using (Table table = geodatabase.OpenDataset
活动提要
|