span8
span4
地理数据库的读者可以FME来检索ESRI的地理数据库结构的数据。支持提供了一种用于转换地理数据库的几个方面,包括地理数据库注记。下面举例说明如何创建注释的基本翻译和地理数据库和AutoCAD的DWG之间的特性。源数据集是地理数据库特征类,一个与线几何(rapid_transit_lines),其他与地理数据库注解(rapid_transit_linesAnno)。这些要素类从地理数据库格式拍摄,并写入到AutoCAD的DWG。
FME把地理数据库注记为线几何。这样,注记要素被读取的插入点将基于沿着相应线的几何形状注释的对准。例如,如果注释的对准是底/左,注释将结合对应于底/左计算的线的几何形状用于注解特征的插入点读出。
Rapid Transit Lines (ESRI Geodatabase - File Geodb)
在上图中,我们看到我们的快速公交线要素类的内容断然个别公交线路象征,方便的可视化。
Rapid Transit Lines Annotation (ESRI Geodatabase - File Geodb)
在上图中,我们看到了几个我们地理数据库注释相对于它们的相应功能的可视化。利用ESRI的ArcGIS软件的比例为1标准标签产生我们看到的注解:10,000,保存为注记要素类,且非特征联系起来。
1.Read Source Data - ESRI Geodatabase (File Geodb)*
当添加地理数据库读写器到工作区时,一定要与输入地理数据库中添加特定的表(即rapid_transit_line和rapid_transit_lineAnno)作为单独的特征类型。一旦特征类型已添加到工作区,在rapid_transit_lineAnno特征类型双击,单击格式属性选项卡上,并揭露/选择以下属性:
这些参数将有助于控制文本样式为我们翻译从地理数据库到DWG。
2.Feature Styling
该公交线路的功能将被写入到我们的目的地DWG文件一层;然而,为了帮助划定个别公交线路,让我们运用独特的颜色各公交线路。变压器将使我们能够分离出单个A线TestFilter功能基础上,公交线路的名称。一旦添加,连接rapid_transit_line特性 type to the transformer and edit the TestFilter parameters.Under "Test Condition", double click on the blank space next to "If".This will launch the Test Condition dialog box.Enter a test condition for the first transit line (i.e LINE = Canada Line) and set the Output port to "Canada Line".
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:
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).
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, then click OK:
3b.Set Alignment for CAD Text
Values for vertical and horizontal text alignment are taken from the previously exposed Geodatabase parameters - geodb_v_align and 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
Add the Autodesk AutoCAD DWG/DXF writer to the workspace, connecting the output from all DWGStyler transformers in the feature styling section and all AttributeValueMapper transformers in the text alignment section.Once added, open the writer's feature type properties and expose/select autocad_justification from the format attributes tab.Run the workspace.
* 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.
©2019安全亚搏在线软件公司|法律