span8
span4
地理数据库阅读器允许FME从ESRI的地理数据库结构中检索数据。为翻译地理数据库的几个方面提供了支持,including Geodatabase annotation.The following illustrates how to create a basic translation of annotation and features between Geodatabase and MicroStation DGN.The source datasets are Geodatabase feature classes,one with line geometry (rapid_transit_lines),the other with Geodatabase annotations (rapid_transit_linesAnno).这些功能类取自地理数据库格式,并写入MicroStation DGN。
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功能类型,单击“格式属性”选项卡,并显示/选择以下属性:
这些参数将有助于控制文本样式,因为我们从geodatabase转换为dgn。
2.特征造型
The transit line features will be written to one layer in our destination DGN file;然而,为了帮助划分各个公交线路,让我们为每条运输线应用一种独特的颜色。A TestFilter transformer will allow us to separate out the individual line features based on the name of the transit line.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:
下一步,add three DGNStyler transformers to the workspace.DgnStyler转换器允许各种文本和功能样式。By connecting each output port (i.e Canada Line,世博会线以及千年线),从测试滤波器变压器到单个DGNStyler,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.
三。Text Styling
The annotations coming from the Geodatabase must be styled in such as way that allows for more seamless output to the destination DGN.For purposes here,重点将放在注释的位置上,而不是字体样式的操作上。在这里,转换将使用geodatabase注释功能类型中公开的参数(请参见步骤1)。
3a.Set Text Size
attributeCreator允许我们创建一个idgs_text_size属性,该属性将用于存储输出dgn文件的文本大小值,如下面的屏幕截图所示(请注意,如果需要,还可以使用dgnstyler代替attributeCreator来完成此步骤)。
3B。设置CAD文本的对齐方式
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 MicroStation (igds) attributes that will be used to set the text justification in the final DGN output.A TestFilter separates the data based on the vertical alignment (i.e.top,center,bottom).attributeValueMappers从testfilter获取结果输出,并将垂直和水平对齐应用于相应的IGDS对齐属性-设置MicroStation批注的最终对齐方式(通过IGDS的“对齐格式”属性)。An example of the parameter settings from one of the AttributeValueMappers can be seen below.
4.Write CAD Data
Add the Bentley MicroStation Design (V8) writer to the workspace,keeping the default values.Connect the output from all DGNStyler 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 igds_justification and igds_text_size from the format attributes tab.Run the workspace.
*上述示例中使用的ESRI地理数据库(文件geodb)读卡器要求用户可以使用授权版本的Arcgis。有关所需许可级别的详细信息,请看Required ArcGIS License Types for FME Geodatabase Formats.
如何将曲线文本从地理数据库转换为MicroStation DGN?
Topographic Base Map Data Preparation for Local Government
Reading Basic Geodatabase Annotation - GDB to DWG
Esri ArcObjects Error Number '-2147155646': Invalid Attribute Names
Tutorial: Geodatabase Transformations
MicroStation Text Styles in FME 2015.0 and older
© 2019 亚搏在线Safe Software Inc |Legal