斯潘8
span4
Arcgis在线特征服务编写器支持三种模式:插入,update,and delete.此模式可以在功能类型级别(应用于写入相应功能服务的每个功能)或使用fme_db_operation属性在功能级别设置。
此编写器模式设置在该编写器上的工作方式与在这里记录的FME中的任何数据库编写器的工作方式大致相同:Database Writer Mode与Arcgis在线特色服务编写器的一个重要区别是,然而,is that it does not allow for manually selecting the attribute to be used as a unique identifier for making updates and deletes.更新和删除是使用创建新功能服务时自动添加的对象ID字段完成的。Any features being sent to the writer to be updated or deleted,therefore,must have this field set on them.
要将“对象ID”字段附加到功能上,您可以将Arcgis在线功能服务阅读器添加到您的工作流中(FeatureReader Transformer也可以用于此操作亚搏在线)。读卡器将引入一个名为fid的属性,该属性包含所有更新和删除操作所需的对象ID字段。You can then use a transformer such as the FeatureMerger to merge the FID attribute onto the features being written.
The attached workspace shows an example of how to write inserts,更新,and deletes to an ArcGIS Online Feature Service.
这个工作区有两个读卡器:一个从XML提要读取传入的更新,另一个从现有的ArcGIS在线特性层读取原始数据。
The FeatureMerger is used to compare the two sets of features to filter out the features that should be tagged to be inserted,更新,or deleted:
attributeCreators用于设置fme_db_operation属性,以标记具有正确操作的各个功能。Features from the Merged port on the FeatureMerger are tagged as updates,从notmerged端口删除,未引用的端口是更新的将更新写入agol.fmw
Finally,这些特性被发送到Arcgis在线特性服务编写器。写入程序模式应设置为更新。The writer will then check the FID on each of the features sent to it and will update,insert,或删除现有层中的相应功能。
有关使用fme_db_操作的更多信息,请参阅本文使用fme format属性fme_db_operation进行增量数据库更新
除了使用更新检测器变压器之外,我一直在尝试您在这里描述的方法。我发现,当我尝试执行工作区时,经常会在下面收到此消息。你能提供一些关于发生了什么事的见解吗?我怎样才能纠正它呢?
谢谢,
Warren
ArcGIS Online Feature Service Writer: 'updateResults' error for a feature in 'Roads'.服务器的错误代码为“1019”,消息为:“指定的功能无法更新或不存在。”Last line repeated 10 times ...ArcGIS Online Feature Service Writer: 0 features successfully written to 'Roads',但由于错误,服务器拒绝了上一个请求中的1000个功能。请参阅上面的警告。中止转换发生了致命错误。查看上面的日志文件了解详细信息
Hi@华伦156
My best guess without seeing the workspace would be that maybe it is trying to update records that either don't exist in the Feature Service or it's not able to find the correct FID for an existing record in the feature service.如果你愿意的话,我很乐意帮助你通过一个支持案例来仔细研究这个问题。You can create a case throughwww.亚搏在线safe.com/supportrequest只需添加一些有关您正在构建的工作流的详细信息,我们可以帮助您完成亚搏在线此工作。
亲切的问候,
劳拉
That would be great if you could help me out with a support case!Much appreciated.
谢谢,
Warren
© 2019 亚搏在线Safe Software Inc |合法的