span8
span4
span8
span4
See thisarticlefor a more up-to-date approach for extracting domains and subtypes from an Esri XML Workspace Document
This article applies to FME 2015 and older.If you are using FME 2016 or newer,please see the latest version of this article,plus examples,in theGeodatabase Transformations Tutorial:
Working with Geodatabase Domains: Creating A Coded Domain
While FME will read and resolve Geodatabase coded domains,some users may want to actually extract the domain tables themselves,which are stored as blobs in the Geodatabase.
The workspaces below do this in two steps:
The first step is to use the Startup TCL script to spawn a command line FME Generate command that creates a temporary mapping file from the Geodatabase to Null.
The second step is to read the new mapping file using the Textline reader to extract and parse the coded domain definitions into an Excel spreadsheet.
An alternative approach is to use ArcCatalog to export an Esri XML Workspace Document with the database schema.You can then extract the domain and subtype codes from the resulting XML.
An even simpler alternative in more modern versions of FME is to read the GDB schema with the FeatureReader transformer.If the reader parameter Resolve Domains is enabled,the domain definition will be supplied in the native data type of any attribute using that domain.
Hi@DaveAt亚搏在线Safe.I use these examples to extract the Domain table to build Data Dictionary Files for Data dictionaries in my GPS unit.I have used the PythonCaller code from the "Extract_domains_from_geodatabase_gdb.fmw" but it will not work in FME 2018.Could you possibly upgrade the python code to 3.4+ so I could use it again?Sorry I have no knowledge of Python and don't have time to learn right now.Thanks
Please see here for an updated workspace of "Extract_domains_from_geodatabase_gdb_py34.fmw" built with 2018.1.1 (build 18567) that will work with Python 3.4.Note that this updated version workspace willnotwork with Python 2.7.
I hope this helps.
Creating and Associating Geodatabase Domains Dynamically Using A Feature Class and GDB Table
Performing spatial queries on database tables using the FeatureReader
Convert Geodatabase Coded Domains To Geomedia Picklists
How to Read and Translate all Feature Classes from Multiple ESRI Geodatabases
Working with Geodatabase Subtypes and Domains
Working with Geodatabase Domains: Creating A Coded Domain
Reduce the size of Geodatabase workspace
Creating Geodatabases based on existing Geodatabases
© 2019 亚搏在线Safe Software Inc |Legal