Hello,
I constructed a utility geodatabase and every feature class has a "Type" attribute field to which I have assigned a coded domain. The coded domain is of course made up of a Code and a Description. The Code is an abbreviation for the Description in this case but that is not relevant to this question. The client had many many shapefiles of varying levels of quality that they'd collected over years (e.g. not all had the same text for "Type"). The geodatabase was designed for GPS data collection so that GPS data that were collected would load into the geodatabase and correctly populate the "Type" attribute field for all feature classes (e.g. it matches the coded domain Description); the same is true if a point is digitized in the geodatabase. All that is fine.
But I have to use the existing data as well, so I loaded the data and in order to have the existing data match the coded domain text for "Type" I used the Field Calculator to make the text in the "Type" field identical to the coded domain Description text. The problem that I am having is that following this Field Calculation whenever you Select By Attributes or Symbolize features based on the "Type" attribute field you get two selection choices, one with the text (e.g. 'Curb Inlet') and one with the Code/Description (e.g. 'CI' - 'Curb Inlet') but they are the same Feature "Type". Data that had the domain assigned text (e.g. GPS'd or digitized in ArcGIS) are 'CI' - 'Curb Inlet', and data for which I applied the Field Calculation are 'Curb Inlet' (e.g. it does not recognize the Code from the domain). ArcGIS symbolizes or selects them as separate "Types". If you edit the data field for the records that had the Field Calculation performed and use the drop down menu of the domain to assign the text, it moves them from one category to the other, even though the text is identical.
Does anyone know a way to assign text to a field so that it recognizes that the text match a domain choice other than manually using the drop down menu for all 36000 records.
Thanks.
Sam
I constructed a utility geodatabase and every feature class has a "Type" attribute field to which I have assigned a coded domain. The coded domain is of course made up of a Code and a Description. The Code is an abbreviation for the Description in this case but that is not relevant to this question. The client had many many shapefiles of varying levels of quality that they'd collected over years (e.g. not all had the same text for "Type"). The geodatabase was designed for GPS data collection so that GPS data that were collected would load into the geodatabase and correctly populate the "Type" attribute field for all feature classes (e.g. it matches the coded domain Description); the same is true if a point is digitized in the geodatabase. All that is fine.
But I have to use the existing data as well, so I loaded the data and in order to have the existing data match the coded domain text for "Type" I used the Field Calculator to make the text in the "Type" field identical to the coded domain Description text. The problem that I am having is that following this Field Calculation whenever you Select By Attributes or Symbolize features based on the "Type" attribute field you get two selection choices, one with the text (e.g. 'Curb Inlet') and one with the Code/Description (e.g. 'CI' - 'Curb Inlet') but they are the same Feature "Type". Data that had the domain assigned text (e.g. GPS'd or digitized in ArcGIS) are 'CI' - 'Curb Inlet', and data for which I applied the Field Calculation are 'Curb Inlet' (e.g. it does not recognize the Code from the domain). ArcGIS symbolizes or selects them as separate "Types". If you edit the data field for the records that had the Field Calculation performed and use the drop down menu of the domain to assign the text, it moves them from one category to the other, even though the text is identical.
Does anyone know a way to assign text to a field so that it recognizes that the text match a domain choice other than manually using the drop down menu for all 36000 records.
Thanks.
Sam