0

I have a Field in a Shapefile which has 3 unique Integer values as

[1, 2, 3]

but I want to display them in table as string like

1 - A
2 - B
3 - C

so eventually in the table will be A, B or C but keep the actual data in integer format behind the scene Can you please let me know how to do this is ArcGIS

  • 1
    Not in a shapefile, as a feature class in a geodatabase yes. You can create a domain and associate it with the field then your attribute editor, attribute table and identify will all show the letter instead of the number by default. If you must keep this a shapefile you have no other option but to add a new (text) field and calculate the values but this will mean if the original value is changed the calculated letter will no longer match. – Michael Stimson Mar 27 '17 at 22:33
  • Hi Michael, so we can not do these thing using Field Calculator? – user1106951 Mar 27 '17 at 22:35
  • 3
    Not as I understand your question. You can have a domain in a geodatabase to store numbers but show text but that is not available to shapefiles. – Michael Stimson Mar 27 '17 at 22:36
  • 1
    The Esri Electrical dataset will be in a geodatabase, meaning the domains and subtypes are available – Midavalo Mar 27 '17 at 22:53
  • 1
    If you install an extension for ArcGis and have it active there is more than just the default Esri code running. Not having used that extension I'd just be guessing but it sounds like that software has overridden ITableView or IFeatureClass in the ArcObjects namespace for shapefiles if what you say is correct. It certainly isn't default Esri behavior... which is, after all, what you buy extensions for. – Michael Stimson Mar 27 '17 at 22:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.