span8
span4
教程:地理数据库转换|Previous: Writing a Subtype|Next: Relationship Classes
Although annotations are stored in a separate feature layer in a Geodatabase, they can be linked to other features through feature-linked annotations. Feature-linking occurs when there is a relationship between an annotation feature class and some other feature class.
联是通过一个共同的属性定义关系来进行。的关系必须已经在地理数据库写入数据之前定义。
FME:它是如何工作的:如果的关系nnotation exists in the geodatabase, then FME will automatically create the annotation and the relationship. The FME Geodatabase writer will retrieve the object ID of the new feature and then write the annotation feature and the relationship linking to it. The result is that you only need to write the to the primary feature class (Zones in the example below) and the one FME feature contains enough information to write two features: one annotation feature (ZoneNames) and one primary feature (Zones). The annotation created is based on the annotation rules you've created in your target geodatabase in the annotation feature class (ZoneNames)
区(MapInfo的TAB)
另外,在上述图像中,我们看到区域TAB文件和它的伴随的属性的可视化。对于ZoneName属性将为要素关联的注释提供的值。
1.设置目标地理数据库
如上所述,特征联是通过一个共同的属性定义关系来进行。因此,有必要先确定要写入数据的目的地理数据库的功能和注解之间的关系。这一过程将需要使用ArcGIS创建一个空的要素类,以保持区域特色,空要素关联的注记类(设计所要求的规模,布局性,文本大小等)来存放区注释和关系类两个连接在一起(注*生成在ArcGIS要素关联的注记类应建立必要的关系类)。
For purposes here, a previously created Geodatabase template file has been applied to the attached workspace and will be used during the translation to apply the required schema to our destination Geodatabase. The template file in this example is called `DESTINATION_GDB_TEMPLATE.XML`, and is set as the "Template File" parameter for the writer.
2.读取源数据 - MapInfo的TAB(MITAB)
Zoning feature geometry and annotations are read from the TAB source file using the MapInfo TAB (MITAB) reader, providing the features and annotations for the destination feature classes (Zones and ZoneNames) in the Geodatabase referenced in Step 1. The annotation values will be provided from the ZoneName attribute in the source data.
3. Write Geodatabase Features and Feature-Linked Annotation
添加地理数据库ESRI(文件地理数据库)作家。正如上面提到的,而不是从头开始创建地理数据库,我们将使用一个ArcGIS XML工作空间文档。该模板通过从现有地理数据库导出它创建。在这种情况下,该模板文件由包含要素类,要素关联的注记类和关系类地理数据库导出。一个作家参数设置模板来创建地理数据库使用和添加地理数据库的作家时,可以设置。
Once added, connect the output of the MapInfoTAB reader to the Geodatabase writer. In the Navigator window, set the transaction type to Edit Session. We are dealing with complex features that can only be edited in an Edit Session or Version. In addition, ensure that Overwrite Existing Geodatabase is set to No.
添加作家,如果你不使用模板文件:
If a template file is not available and a destination Geodatabase was created from scratch as mentioned in Step 1, when adding the ESRI Geodatabase (File Geodb) writer, be sure to set the Add Feature Type(s) section of the writer dialog to "Import from Dataset".
出现提示时,设置的格式,然后选择地理数据库中的第1步,然后点击创建好. FME will scan the Geodatabase to confirm what tables exist. When prompted with a list of classes, select only the feature class that you wish to populate with features.
一旦作家加入,则MapInfoTAB读取器的输出连接到地理数据库的作家。在导航窗口中,设置交易类型编辑会话。我们正在处理复杂的功能,只能在编辑会话或版本进行编辑。此外,确保覆盖现有地理数据库设置为No.
*在上述实施例中使用的地理数据库ESRI(文件地理数据库)作家要求的ArcGIS的许可版本可用给用户。有关要求ArcGIS许可级别的详细信息,请参阅Required ArcGIS License Types for FME Geodatabase Formats.
当一个地理数据库转换为另一种,但也可以如上述相同的方式来创建新的关联要素的注释。然而,在某些情况下,你可能已编辑您的注释,你想保留这些修改。要做到这一点,你需要将源注释链接回主要特征,并为您想保留注释特点geodb_ <安诺>格式属性。此外,在您的目标地理数据库模板,确保注释并不会自动插入功能创建。要做到这一点,你需要编辑ArcGIS的注释属性,取消选择“添加功能时创建的注释”。然后导出到您的ESRI的XML工作空间文档,你会用你的地理数据库模板
In this example, the source geodatabase has the feature class Zones and feature-linked annotation ZoneNames. FME (2018.1 and higher) will automatically add geodb_text_feat_class_name to annotation features. In earlier versions of FME you had to set this to the name of the annotation feature class, i.e. ZoneNames. The workspace uses:
The workspace is attached:地理数据库到地理数据库,featurelinkedanno2017.fmwt
伟大的文章,谢谢!
I've got the problem, that if i update features (polygon) that have feature linked annotations via fme, the annotations former positions get lost (when they were moved away from their default position).
我试图更新这些多边形的功能或注释通过非ESRI技术(SQL)直接功能,但这并不做的伎俩。
Is there a solution for this problem?
©2020安全亚搏在线软件公司|法律