I have found Landsat 8 PanSharpened WMS service here. It is a mosaic made by Esri.

I can open attribute table of this mosaic dataset.

Can I sort rows of attribute table to see only rows related to rasters in my current view extent using ArcGIS for Desktop?

The option I need is similar to Attribute Table widget's Filter by Map Extent:

Only displays attributes for features within the current map extent

  • What you are describing sounds like a spatial definition query.
    – PolyGeo
    Feb 10 '16 at 6:51
  • No, it is not spatial definition query. See update. Feb 10 '16 at 7:07
  • It sounds to me like the Web AppBuilder for ArcGIS has implemented a simple spatial definition query, but can you edit your question to make clear whether you are using that or ArcGIS for Desktop, please?
    – PolyGeo
    Feb 10 '16 at 7:17
  • Yes, I use ArcGIS for Desktop. Question edited. Feb 10 '16 at 7:19
  • At the moment I able to use Select Features tool for described in questions purposes but its not an automate solution. Feb 10 '16 at 7:35

Some idea...You can work around the problem by creating a Python add-in.

Do job when Tool is clicked (or onKeyDown(self, keycode, shift) ). Next tool are triggered and do:

#get extend
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
XMIN = df.extent.XMin
YMIN = df.extent.YMin
XMAX = df.extent.XMax
YMAX = df.extent.YMax

#create polygon from extend

#use arcpy.SelectLayerByLocation_management
#get list of selected object
#add layer.definitionQuery to layer
#refres view and table

It's just an idea...

  • Yes, this will work. Feb 10 '16 at 11:30

What you are describing sounds to me like a Spatial Definition Query which is currently at the ArcGIS Idea stage for ArcMap.

I suggest that you add your vote to it, if you have not already.

You may want to submit a new ArcGIS Idea in case the existing one, which is more elaborate, does not cover the simpler Filter by Map Extent that you envisage.

  • This functionality is way overdue - QGIS has had it for a long time. I searched the ArcGIS Ideas site and found this: geonet.esri.com/ideas/12089
    – mike
    Sep 1 '16 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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