Tag Info

Hot answers tagged

10

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

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.


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.


3

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: ...


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

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 ...


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.


2

Yes, you will need to use the external procedure agent if you want to access the XML columns in the SDE.GDB_ITEMS_VW views. By default, the XML columns in the GDB_* tables are stored using ESRI's XML implementation. The functionality to convert these to a CLOB is included in the ST_Geometry library, which is accessed using the external procedure agent. ...


2

You can get this from the FeatureLayer class. There is an attribute called fields, which is an array of Field objects. The Field class has domain attribute. The following will output the domains in the console (if any): var map = new Map(...); var fl = new FeatureLayer(...); map.addLayer(fl); // when layer is ready for (var i = 0; i < fl.fields.length; ...


1

As Richard's comment points out, the issue here isn't the special characters. Domains aren't enforced until time of validation (Validate Features on Editor toolbar), so even if a field has a domain on it you can enter whatever you want to the field. In this case, it appears that the description rather than the value code has been entered. This is evidenced ...


1

Yes you need to build the drop down manually. When a featureclass contains a field to which the coded value domain is setup, in that case, you get only the index values, and not the description as the attribute value. If you look at the fields object on the query response, you'll see that it contains the domain, and using that, manually you'll have to set ...


1

By global, I mean domains and default values that are shared between all subtypes. What I've noticed is that if in the Fields tab you set all your global domains and default values BEFORE you create the subtypes, then these settings will be present for each subtype when you create them. But, if you create the subtypes BEFORE you set the domains and default ...


1

Okay, posting for posterity's sake now. My team and I did find a way to successfully implement data driven pages with domain values (for the ultimate purpose of a printing service) using a combination of python and spatial views that were created in the database. Basically, every field I wanted on the print layout was included in the spatial view. The ...


1

I had the same issue and was able to solve it. If You have large number of layers or domains with many values then service may reach "Maximum Number of Coded Domains" parameter maximum value. Go to "ArcGIS server manager" "Edit service" (the one with missing domains) Open "Parameters" settings "Properties" table find the "Maximum Number of Coded Domains" ...


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 ...



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