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 have a Python AddIn Combobox to select a value from the drop-down list. This value changes the definition query of the layers in mxd. This works fine for "normal" feature classes, not for a mosaic dataset. On the Layer Properties dialog box the DefintionQuery tab is empty.

layer_lst = arcpy.mapping.ListLayers(arcpy.mapping.MapDocument("CURRENT"))

for layer in layer_lst:

   if in ('dted_hillshade','dted_dem6x6') and layer.supports("DEFINITIONQUERY"):

      layer.definitionQuery = "\"NAME\"=\'000E00N.DT2\'"

Does anyone one know a workaround to set a correct Definition query for mosaic dataset?

share|improve this question
Anyone find a programmatic solution? – dchaboya Nov 5 '13 at 19:28

I overlooked the symptom you described so had thought you might be encountering NIM067173 which should have been fixed by 10.1 or NIM076742 which seems to still be an open issue. However, it sounds like you may be coming up against something different.

share|improve this answer

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.