Tag Info

Hot answers tagged

7

Here is something I put together that works on the simple gdb's I have on hand. I don't know how it might or might not handle sub-types with multiple domains (see Brent's comment). Usage: python export_gdb_domains.py [input geodatabase] It exports the tables to the same gdb it's getting the domains from. It will fail if the table(s) exist already. I ...


5

Yes, you can do this with arcpy. I usually use arcpy.da.ListDomains to iterate through the domains but in your case you just need to see if there are any domains assigned to a field in feature classes. This code can iterate really quickly through multiple feature classes and report those that have a field that has been assigned to the domain you've ...


4

Create lookup tables like @GeoKelvin discribed. Or use tool Domain To Table to create a lookup table. Join lookup table to feature class Export feature class to Shapefile You can automate this with Modellbuilder.


4

As @PolyGeo mentioned, If you are using 10.1, the arcpy.da (Data Access) module contains a ListDomains function which returns a list of Domain objects, each with a codedValues property you can examine to determine if the specified value exists in a given domain. Alternatively, if this is an SDE geodatabase at version 10 or greater (in earlier versions, ...


4

You will need to be using ArcGIS 10.1 to use the da (Data Access) module but it looks like the Domain class has a codedValues property that can be used to obtain a Python dictionary containing the coded values for attribute domains.


2

It will depend somewhat on the type of field and domain you are using. Assuming you are using the defaults, integer, and coded value. you want the syntax in the field calculator to be (selectedrowsinmydomainfield) = newcodedvalue in the example... nom_size is the domain with 1 = 1" If I want to change all selected values to 1". I use the syntax in the ...


2

Not sure where your idea fits in among these, but there are several out on the ArcGIS Ideas site you might want to vote for: Allow subtypes on multiple fields Requesting a Sub-Subtype Option Coded value domains set mulit-level dependancy on coded value domains for a feature class


2

There is a Technical Article here that may supply you with an answer. It says: Cause These errors occur if the domain is applied to one or more fields in the geodatabase. Solution or Workaround To delete a domain, it must not be associated with any fields in the geodatabase.


2

Have you tried running the Domain to Table tool? This will give you a listing of all domains and associated code values. And it is available at all license levels.


2

Are you asking about outside of an edit session? If you have access to the data in arcmap you have access to the data in arccatalog. In arcmap there is a small button at the top with a "yellow file cabinet" catalog. If you access the data in arcmap, ArcCatalog is how that connection is created. Does IT have that locked down? a. If you have the data in ...


2

You could do it with Python, but if you are unfamiliar with Arcpy, it's a simple field calculation. Add a new text field and use this in field calculator. CODE BLOCK: def domain(field): if field == 1: return "Integrated Registered Survey Plan" elif field == 2: return "Survey Plan" elif field == 3: return "Geo-Referenced Air Photography" elif field == ...


2

It sounds like you need to get the coded value for Metre and calculate that coded value into the field, is that correct? I've handled this with a dictionary before, but I created the coded-value domain myself with a dictionary (timezones below), so I already know the key: value pairs. So the trick is to, for a given value in the dict, get the key: def ...


2

You can use tool Raster Calculator. Then type this expression: SetNull("raster_name"<0, "raster_name") Choose output and you should create new raster with elevation 0-n.


1

You could go two ways. 1) You could use Table To Domain (Data Management) GP tool after you have found out the domain name to export the domain values and descriptions into a geodatabase table and then run Join on the feature class and table and then calculate the field. To find out the domain name for a field in a feature class you need the code: ...


1

This will only apply to ArcGIS for Desktop 10.1 and later but at those versions the Assign Domain To Field (Data Management) tool is available and ... Sets the domain for a particular field and, optionally, for a subtype. If no subtype is specified, the domain is only assigned to the specified field. To obtain an iterable list of subtypes for a ...


1

One option is to use a Python script. I just wrote one for a different goal (generate several maps, based on the same shape file and CSV file, but with different fields). The same trick might be used for your problem. My script uses a modified project file to generate a series of project files, based on a list of field names. You could try this method by ...


1

The workaround at 10.0 (which could also be used at 10.1) is to use Add Values to add just the five that you want instead of using Add All Values. At both versions you could use the Summary Statistics tool to find the unique values and get them in a table. If you use 10.1 you should (I have not tested) be able to automate the process using the ...


1

I'm not sure which version of ArcGIS you are working with, or if you've come across this since posting, but in version 10.1 there is an environment setting under "Fields" called "Transfer Field Domain Descriptions" (http://resources.arcgis.com/en/help/main/10.1/index.html#/Transfer_Domain_Descriptions/001w00000049000000/). I've used it on occasion in the ...



Only top voted, non community-wiki answers of a minimum length are eligible