span8
span4
span8
span4
It is possible to make use of the Schema (Any Format) reader to read the feature class names out of any database and then pass these names into a FeatureReader transformer to do the actual reading.This makes it possible to translate, for example, multiple Esri file geodatabases, into some other format like shapefile without knowing exactly which feature classes are in the database.
1)使用模式(任何格式)读写器读取地理数据库的文件夹。
In a blank workspace, add a Schema (Any Format) reader to the canvas.For the dataset, click the arrow drop-down menu and select Select Multiple Folders/Files….to get into the Advanced File Browser.
在模式(任何格式)阅读器,使用下拉箭头来选择多个文件夹/文件
In the Advanced File Browser, click on Add Folders… and then select the folder which contains all of the geodatabases you would like to read in.For this example, we will be using the Data folder which is contained in the FMEData2018 folder.Then under File/Filter type *.gdb this will select all of the files that have the geodatabase file extension.Finally, enable Subfolders so that the file browser will look through all of the subfolders contained within the Data folder.
高级文件浏览器,选择包含文件夹,然后在文件/过滤器设置为* .GDB并启用子文件夹
The Schema (Any Format) reader will read the list of feature classes in all the geodatabases in the folders and returns the names of the feature classes in an attribute called "fme_feature_type_name".
2)安装在FeatureReader
Add a FeatureReader transformer to the canvas, connect it to the Schema reader and open up the parameters.In the FeatureReader parameters, set the Format to Esri Geodatabase (File Geodb Open API).For the Dataset, use the drop-down arrow to select the User Parameter SourceDataset_SCHEMA.This parameter was created by the Schema reader.
Next, for the Feature Types to Read select the fme_feature_type_name attribute using the drop-down menu.This attribute is generated by the Schema reader.
Expand the Attribute and Geometry Handling section, and then expand the
The remainder of the FeatureReader parameters can be left as the default.In addition, the FeatureReader also returns the schema of each of these feature classes, which can be accessed by connecting to the
FeatureReader参数。设置的格式,数据集,要素类阅读和属性揭露
3)动态写作
Add an Esri Shapefile writer to the canvas and select your output location.For the Shapefile Definition select Dynamic (Advanced).
对于ESRI的shapefile作家,设置shape文件定义为动态(高级)
笔者同时连接到
动态作家连接到
在笔者的参数,确保Shape文件名设置为fme_feature_type和几何设置为从架构定义。最后,模式源更改为“架构从架构功能”,取消任何其他模式。
在动态作家参数,设置模式源只“架构从架构功能”
你好@geospatiallover为了使架构(任何格式)与数据库读写工作,增加一个Reader作为一个资源(读者菜单|添加Reader作为资源)来建立数据库连接。设置此读取一个表。然后发布功能来读取参数,这样就可以在运行时选择的组表。然后,在模式(任何格式)读取器使用相同的源的数据集的名称作为在该阅读器用作资源。希望这可以帮助!
你好蒂姆,你却能分担你的工作空间和可能的一个GDB(我可以做它的副本之后)。这将帮助我测试你的工作流来看看亚搏在线 the duplicates are being generated.If you do not wish to share the workspace/data in a public setting - please feel free to submit a case here://www.baooytra.com/support/report-a-problem/
你好@tim_wood
It seems I have the same problem: the reader reads multiple times the same feature.
Did you solve the issue in the end?
Thanks
Are you still having issues with this?If so, if you can share your workspaces and a sample of your data I can take a look to where the issue is stemming from.
Creating and Associating Geodatabase Domains Dynamically Using A Feature Class and GDB Table
Extract Geodatabase Coded Domain Definitions
Improving Performance when working with Esri Geodatabases
Working with Geodatabase Subtypes: Creating A Subtype
Creating Geodatabases based on existing Geodatabases
Comparison of FME readers and writers for SDE and Geodatabase
© 2019 Safe Software Inc |Legal