span8
span4
你好,
我有一个工作台,通过读取与多个要素类文件地理数据库更新元数据。在多个要素类会改变每一次,即实际上我想在基于Excel提供的所有功能类文件地理数据库的所有要素类更新元数据。
我读书用的目录和文件路径读写文件地理数据库,然后使用功能,读者文件geodabase和栅格数据集。他们需要被分割栅格数据集有一个单独的阅读器。
然后,我更新了基于Excel的输入,其正常工作的每个要素类的元数据。
不过,我可以以动态的方式使用两种功能作家不写回的元数据到原始文件地理数据库要素类,即写在文件地理数据库或动态文件地理作家的所有要素类。
我得到的错误,我对如何做到这一点的选项用完。
这是我读如何:
这是我想写只有在这个时候更新的元数据回文件地理数据库,栅格数据集将在稍后补充说:
你的帮助非常感谢。
玛格达
你好@wilczekmj,
你所得到的电流误差是作为目标的结果地理数据库比你的来源不同,如提及@sipsysigh。如果您或者您的FeatureReader之前或刚刚路径Reader和设置以下参数后添加VariableSetter:
变量名:pathVariable值:@Value(path_windows)
在此之后,您的工作流程保持不变,直亚搏在线到刚好前FeatureWriter。在这里,如果你添加一个VariableRetriever具有以下值:
变量名:pathVariable属性接收值= _gdbpath
什么上面确实可以让你保持path_windows属性(其中包含地理数据库路径)通过工作流程。亚搏在线你可以返工工作流程,以保持该属性,但var亚搏在线iablesett /猎犬也将这样做。那么这_gpdpath将成为您的FeatureWriter数据集中值。
在作家,我相信,如果你改变了功能操作插入,我怀疑它会过乘坐原来的元数据功能。更新不会起作用,因为它将无法找到一个match based on the geodb_metadata_string, as a result of it being altered in the workspace.
Let me know if that works.
Hi@wilczekmj,
The error message you quote in your comment suggests that you are trying to write metadata to a feature class that doesn't exist.
If you want to update existing metadata of a feature class then you would need to point your reader and writer to the same geodatabase or, at least during testing, point your writer to a copy of the original geodatabase.
You can set the Table | General parameters of the FeatureWriter to Insert and Use Existing.
You'll also need to make sure that you don't overwrite the existing geodatabase.
Hope this helps,
Si
What are the errors you are getting?The most likely cause of error is your xml string not being correct.
你好 ebygomm,
Many thanks for looking at this and your help with previews related question:)
The error message I am getting with Feature writer is:
"Attempting to create table 'HYD_871_160_103_00_REF_MainRivers10k_Ln' with 'geodb_type' set to 'geodb_metadata'. FME features of 'geodb_metadata' can only be written to existing tables. If intending to write metadata, please ensure the table already exists. If intending to create a new table, ensure the 'geodb_type' is set to a valid table type.
A fatal error has occurred.Check the logfile above for details"
It looks as it is trying to create rather than update to the existing feature class.
Hi@wilczekmj,
How are you recreating the new metadata string?maybe this article can help:
https://knowledge.safe.com/articles/22583/working-with-geodatabase-metadata-writing-to-xml.html
©2020安全亚搏在线软件公司|法律