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.
一个更简单的改变native 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@DaveAtSafe. 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.
Hello Friends
I tried above tool which isextract domains from GDB,But the result gives in different sheet for each field
Is it possible to get the domains of each feature .
Could you possibly upgrade the python code ,Sorry i dont have much python experience
ABove is the screenshot , we follow manually in the organization , any suggestion please
Thanks
Hi@abnan0001,
Are you using FME 2015 or older? This article has been updated with a different approach for FME versions 2016 and newer. Please seeGeodatabase XML Workspace Document Schema Reader.
-Liz
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: Writing A Coded Domain
Reduce the size of Geodatabase workspace
Working with Curved Multi-part Geodatabase Annotation
Working with Geodatabase Feature-Linked Annotation
Remove the geometry type appended to feature type name in dynamic mode
© 2020 Safe Software Inc |Legal