gpt4 book ai didi

ios - com.esri.arcgis.runtime.error Code=10018 词法转换错误

转载 作者:行者123 更新时间:2023-11-29 05:11:08 24 4
gpt4 key购买 nike

我在从图层 URL 创建 serviceFeatureTable 时遇到问题。

 let serviceFeatureTable = AGSServiceFeatureTable(url: selectableMapLayerUrl)
serviceFeatureTable.load { (error) in
if let error = error
{
print(error) // bad lexical cast: source type value could not be interpreted as target
}
}

错误是:错误 Domain=com.esri.arcgis.runtime.error Code=10018“错误的词法转换:源类型值无法解释为目标” UserInfo={NSLocalizedDescription=错误的词法转换:源类型值无法解释为目标,NSLocalizedFailureReason =}

它在网站上运行完美,但在 iOS 上出现问题

任何建议

最佳答案

您可能在该层上定义了一个域,其中域定义与该域上的值之间存在类型不匹配。我见过的一个例子是域的类型是 esriFieldTypeSmallInteger但域的值是 double 的。这是(或类似的)情况吗?

如果情况并非如此,您能否分享该图层的 URL 或(如果不是公开的)JSON?

关于ios - com.esri.arcgis.runtime.error Code=10018 词法转换错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59676377/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com