span8
span4
地理数据库的读者可以FME来检索ESRI的地理数据库结构的数据。支持提供了一种用于转换地理数据库的几个方面,包括地理数据库注记。下面举例说明如何创建注释的基本翻译和地理数据库和AutoCAD的DWG之间的特性。源数据集是地理数据库特征类,一个与线几何(rapid_transit_lines),其他与地理数据库注解(rapid_transit_linesAnno)。这些要素类从地理数据库格式拍摄,并写入到AutoCAD的DWG。
FME treats Geodatabase annotation as line geometry. As such, the insertion point of the annotation feature being read will be based on the annotation's alignment along the corresponding line geometry. For example, if the annotation's alignment is bottom/left, the annotation will be read in with an insertion point corresponding to the bottom/left of the calculated line geometry for the annotation feature.
Rapid Transit Lines (ESRI Geodatabase - File Geodb)
In the above image, we see the contents of our Rapid Transit Line feature class categorically symbolized by individual transit line for easier visualization.
捷运线注释(ESRI地理数据库 - 文件地理数据库)
在上图中,我们看到了几个我们地理数据库注释相对于它们的相应功能的可视化。利用ESRI的ArcGIS软件的比例为1标准标签产生我们看到的注解:10,000,保存为注记要素类,且非特征联系起来。
1. Read Source Data - ESRI Geodatabase (File Geodb)*
当添加地理数据库读写器到工作区时,一定要与输入地理数据库(即rapid_transit_line和rapid_transit_lineAnno)作为单独的要素类型添加特定的表。一旦特征类型已添加到工作区,在rapid_transit_lineAnno特征类型双击,单击格式属性选项卡上,并揭露/选择以下属性:
这些参数将有助于控制文本样式为我们翻译从地理数据库到DWG。
2.功能样式
该公交线路的功能将被写入到我们的目的地DWG文件一层;然而,为了帮助划定个别公交线路,让我们运用独特的颜色各公交线路。变压器将使我们能够分离出单个A线TestFilter功能基础上,公交线路的名称。一旦添加,连接rapid_transit_line功能型的变压器和编辑TestFilter参数。在“测试条件”,在空白处双击旁边的“如果”。这将启动测试条件对话框。输入第一交通线路的测试条件(即LINE =加拿大线)和输出端口设定为“加拿大线”。
重复上述过程,以“世博专线”及“千禧线”取代“加拿大线”的实例。一旦完成,TestFilter参数应如下所示:
Next, add three DWGStyler transformers to the workspace. The DWGStyler transformer allows for various textual and feature styling. By connecting each output port (i.e Canada Line, Expo Line, and Millennium Line) from the TestFilter transformer to an individual DWGStyler, each transit line feature can by styled in a different manner. For purposes here, double click on each styler individually and choose a desired colour for the various output transit lines.
3. Text Styling
The annotations coming from the Geodatabase must be styled in such as way that allows for more seamless output to the destination DWG. This is where the translation will make use of the parameters exposed in the annotation feature type (see Step 1).
3. Set Font Style and Text Size
添加另一个DWGStyler到工作区并连接rapid_transit_lineAnno特征类型的变压器。打开DWGStyler的参数对话框,设置以下值,然后单击OK:
3b. Set Alignment for CAD Text
垂直和水平文本对齐值从先前暴露地理数据库参数采取 - geodb_v_align和geodb_h_align。这些值将被应用到相应的将被用于设置在最终输出DWG的文本对齐的AutoCAD属性。甲TestFilter基于垂直配向(即顶部,中部,底部)的数据分离。AttributeValueMappers采取从TestFilter结果输出和两个施加垂直和水平对齐于相应的AutoCAD对准属性 - 设置AutoCAD的注释的最后的理由(通过autocad_justification格式属性)。
4. Write CAD Data
欧特克AutoCAD的DWG / DXF作家加入到工作区中,从连接在特征造型部分的所有DWGStyler变压器和文本对齐节中的所有AttributeValueMapper变压器的输出。一旦加入,打开作家的特征类型属性,并从格式属性选项卡中暴露出/选择autocad_justification。运行工作区。
* The ESRI Geodatabase (File Geodb) reader used in the above example requires that a licensed version of ArcGIS be available to the user. For more information on required license levels, please seeRequired ArcGIS License Types for FME Geodatabase Formats.
Reading Basic Geodatabase Annotation - GDB to DGN
Polygon Within a Distance of Selected Features
How do I convert curved text from Geodatabase to Microstation DGN?
Writing Geodatabase Relationship Classes
Geodatabase Tablelist Picker fails with Entry Point not found error
Comparison of FME readers and writers for SDE and Geodatabase
© 2019 Safe Software Inc |Legal