I've been asked to see if its possible to maintain values in a coded domain on an ESRI Geodatabase. I would need to insert, update, and delete code/description combination records in the domain. I've found this article:
We highly recommend that you use ArcGIS in order to create/define/alter your geodatabase domain definitions. But you can get at the domain definitions by reading in a geodatabase feature class that contains the domains you wish to alter using a FeatureReader. This would give you access to the underlying schema of the geodatabase where you could then try to make adjustments to domain definitions.
The syntax you would look for within the schema looks like this - coded_domain(<DomainName>:<DataType>:code:value:code:value:.....).
An example domain for street types might look like this - coded_domain(StreetType:char:A:Arterial:S:Secondary:R:Residential)
Again, this is not necessarily a technique we recommend given the complex nature of domains.
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
We highly recommend that you use ArcGIS in order to create/define/alter your geodatabase domain definitions. But you can get at the domain definitions by reading in a geodatabase feature class that contains the domains you wish to alter using a FeatureReader. This would give you access to the underlying schema of the geodatabase where you could then try to make adjustments to domain definitions.
The syntax you would look for within the schema looks like this - coded_domain(<DomainName>:<DataType>:code:value:code:value:.....).
An example domain for street types might look like this - coded_domain(StreetType:char:A:Arterial:S:Secondary:R:Residential)
Again, this is not necessarily a technique we recommend given the complex nature of domains.
Thank you @HeatherAtSafe, I understand the recommendation. I don't particularly want to risk corruption to our geodatabase, so I will explain this to the requestor.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.