Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to create a range domain in a file geodatabase. The user will be able to select a value ranging from 0 and to 200 with an interval of 10. For example, 0, 10, 20, ..., 200.

How can I make and configure a domain type like that?

share|improve this question
up vote 3 down vote accepted

You can't make a range domain which only has discrete values - for that you need a coded value domain. See a quick tour of attribute domains.

There are two types of attribute domains:

  • Range domains—A range domain specifies a valid range of values for a numeric attribute.
  • Coded domains— Coded value domains specify a valid set of values for an attribute.
share|improve this answer
Just a quick follow-up question. What if a range domain contains thousands of discrete values? Is there a programmatic way? – alextc Aug 6 '14 at 2:00
Any more than a dozen values in a list is bad, it takes so long to find the value you're after! That said, I don't know an easy way around this so that might be the only way. There is Add Coded Value to Domain… which you can iterate in arcpy. – Michael Miles-Stimson Aug 6 '14 at 2:11
@alextc That should be a separate question but I would use arcpy.da.InsertCursor with a loop to write a table that you convert with Table To Domain. – PolyGeo Aug 6 '14 at 3:24
From your other question it sounds like you're doing this in a web client - in that case you might be able to do something clever with type-ahead followed by some validation. Prompt the user with possible values as they start typing, and verify the value once they've entered something – Stephen Lead Aug 6 '14 at 3:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.