斯潘8
span4
地理数据库阅读器允许FME从ESRI的地理数据库结构中检索数据。支持翻译地理数据库的几个方面,including Geodatabase annotation.The following illustrates how to create a basic translation of annotation and features between Geodatabase and AutoCAD DWG.The source datasets are Geodatabase feature classes,one with line geometry (rapid_transit_lines),the other with Geodatabase annotations (rapid_transit_linesAnno).These feature classes are taken from Geodatabase format and written to 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,如果注释的对齐方式为底部/左侧,将读取注释,插入点对应于注释功能的计算线几何图形的底部/左侧。
快速运输线路(ESRI地理数据库-文件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地理数据库-文件GEODB)
In the above image,我们看到了一些地理数据库注释与其相应特性的可视化。The annotations we see were generated from standard labels using ESRI ArcGIS software at a scale of 1:10,000,saved as an annotation feature class,和是非功能链接的。
1。Read Source Data - ESRI Geodatabase (File Geodb)*
When adding the Geodatabase reader to your workspace,确保从输入的地理数据库(即rapid_transit_line and rapid_transit_lineAnno) as individual feature types.Once the feature types have been added to the workspace,双击Rapid_Transit_Lineano功能类型,单击“格式属性”选项卡,并显示/选择以下属性:
这些参数将有助于在我们从地理数据库转换为dwg时控制文本样式。
2.功能样式
The transit line features will be written to one layer in our destination DWG file;然而,为了帮助划分各个公交线路,让我们为每条运输线应用一种独特的颜色。测试滤波器变压器将允许我们根据传输线的名称分离出单独的线路特征。Once added,将快速传输线功能类型连接到变压器并编辑testfilter参数。Under "Test Condition",double click on the blank space next to "If".这将启动测试条件对话框。输入第一条传输线(即测线=加拿大测线)的测试条件,并将输出端口设置为“加拿大测线”。
Repeat the above process,replacing instances of "Canada Line" with "Expo Line" and "Millennium Line" respectively.Once complete,the TestFilter parameters should appear as follows:
下一步,将三个dwgstyler变压器添加到工作区。The DWGStyler transformer allows for various textual and feature styling.By connecting each output port (i.e Canada Line,世博线路,and Millennium Line) from the TestFilter transformer to an individual DWGStyler,每个公交线路特征都可以以不同的方式设置样式。For purposes here,double click on each styler individually and choose a desired colour for the various output transit lines.
三。Text Styling
来自地理数据库的注释的样式必须允许更无缝地输出到目标dwg。This is where the translation will make use of the parameters exposed in the annotation feature type (see Step 1).
3a.Set Font Style and Text Size
Add another DWGStyler to the workspace and connect the rapid_transit_lineAnno feature type to the transformer.Open the DWGStyler's parameters dialog,set the following values,然后单击确定:
3B。设置CAD文本的对齐方式
垂直和水平文本对齐的值取自先前公开的地理数据库参数-geodb_v_Align和geodb_h_Align。These values will be applied to corresponding autocad attributes that will be used to set the text justification in the final DWG output.A TestFilter separates the data based on the vertical alignment (i.e.top,center,bottom).AttributeValueMappers take the resultant output from the TestFilter and applies both the vertical and horizontal alignment to corresponding autocad alignment attributes - setting the final justification for the AutoCAD annotation (via the autocad_justification format attribute).
4.Write CAD Data
将autodesk autocad dwg/dxf writer添加到工作空间,connecting the output from all DWGStyler transformers in the feature styling section and all AttributeValueMapper transformers in the text alignment section.Once added,打开编写器的功能类型属性,并从“格式属性”选项卡中显示/选择“AutoCAD对齐”。Run the workspace.
*上述示例中使用的ESRI地理数据库(文件geodb)读卡器要求用户可以使用授权版本的Arcgis。有关所需许可级别的详细信息,请看Required ArcGIS License Types for FME Geodatabase Formats.
© 2019 亚搏在线Safe Software Inc |Legal