span8
span4
许多核心问题ESF.workspaces is that it they are not structured with an understanding of how dataflow works in FME. In FME, spliting data flow is the same as copying and combining is the same as appending. If you want records to actually merge attributes or features together, then you need to use combining transformers such as Aggregators, FeatureMergers and Joiners, etc.
一个非常常见的问题是使用适当的ID缺乏交互。例如,每个开口都需要一个唯一的ESF_opening_ID,每个开放定义都是开口上的子项,因此必须包含ESF_opening_ID和ESF_OPENINE_DEFINITION_ID。如果将打开定义剪切块多边形发送到ESF编写器,则不引用与使用开放_definition共享ESF_opening_ID的父开口的引用,则ESF验证器将拒绝开口_definition多边形。
有些记录可能会有一个重复键。例如,若干切块可以是相同开口的一部分,在这种情况下,复合键可能被切割块和切割许可。在工作空间中,我们需要使用聚合器,使这些多个切割块可以分组为与一个打开定义和打开相关联的一个聚合特征。
For example, in the FTA_HA example from the ESF tutorial (HarvestApplication_wCP_submission.xml):
The harvest application has : esf_harvest_application_id hawcp-1 esf_legal_description_id legal-desc-1 and cutblock A has: esf_harvest_application_id hawcp-1 esf_legal_description_id legal-desc-3 and cutblock B has: esf_harvest_application_id hawcp-1 esf_legal_description_id legal-desc-2
This means that cutblock A and B both belong to harvest application hawcp-1 and hence define the relationship between the cutblock objects and the harvest application object. Also, all the legaldescription ids need to be defined as individual records in the legaldescription feature table.
通常存在ESF编写器的功能,因为它们不符合关联的特征表示文档(例如,2esf_results_fme_feature_representation.doc)。您可能需要使用FME的属性处理变换器以使其符合其符合其的方式解析数据。例如,由于ESF结果功能特征代理规范,您可能使用StringReplacer在电话号码中摆脱空格,即电话号码必须是十进制(10,0)。如果日期字段有“。”在其中,我必须删除。
此外,请注意,FME将在字段名称中具有标点符号的问题。空间应该有效,但可能是一个问题,具体取决于什么类型的处理。您将注意到任何Dest ESF字段都没有空格或标点符号。另请注意,它们区分大小写。
The FME DateFormater only recognizes certain date formats such as YYYYMMDD which will then need to be reformatted to YYYY-MM-DD to comply with ESF.
尝试使用FME查看器打开XML输出文件,使用ESF结果阅读器,设置validate = true。这与在线提交时,同样的模式检查MOF网站是否确实。
Often you need to do some parsing and reformating to get the metadata into a form ESF would accept. Note that it is often a trial and error process. Run the workspace, generate the xml, try loading it with the FME Viewer with the reader setting validate = true. When it fails, note the row number and error message, open the xml in a text editor, note which field the reader is complaining about, go to theesf_results_feature_representation_4rev11.doc.,查找该字段和特征类型,并查看需求是什么。这就是您可能发现的发现,发现日期和电话号码值被错误地格式化,错误类型或者在需要值时为空,例如:
E.g.
XML Parser error: 'Error in input dataset:'file:///C:/RT/31827/results/RESULTS_OpeningDefinition.xml' line:53 column:18 message:Datatype error: Type:InvalidDatatypeValueException, Message:Value is not in enumeration .'
第53行显示:这必须意味着存在ActionCode空白的记录。
You may also need to try loading it with the FME Viewer with the reader setting validate = false in order to inspect your output and see why it might be failing.
使用Joiner可以方便地从电子表格或表中提取字段值。诀窍是找到一个与您的几何功能和表记录相关的公钥,因此您可以检索开放性属性。
Use an AttributeRenamer to rename the attributes to the exact names that ESF is expecting. This way you don't need to manually connect them at the output.
Use nullAttributeReplacers to handle those records with null values that would otherwise cause the translation to fail. These nulls may exist because there are records in the geometry file which cant find a match in the spreadsheet. These will ultimately need to be matched and populated to avoid loss of these records.
对于结果提交,通常您通常需要使用聚合器变压器通过SpectS_ID进行分组。然后,您可以将数据流分支并使用几何形状remover将属性发送到打开要素类型的数据,而另一个数据流分支可以将具有属性的聚合多边形传递给开放文件特征类型。
For additional diagnostic ideas, try going through:7esf_problems_r2.doc.其中包含在文档文件夹中的ESF教程中。
If after reviewing the info above you still have trouble, you can contact us atsupportsend us an email atmailto:concession@亚搏在线safe.com.以及您的工作空间,翻译日志和示例源数据以及您遇到的问题的描述。
©2019 S亚搏在线afe Software Inc |Legal