Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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 layer.name in ('dted_hillshade','dted_dem6x6') and layer.supports("DEFINITIONQUERY"):

      layer.definitionQuery = "\"NAME\"=\'000E00N.DT2\'"
      arcpy.RefreshActiveView()

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.