Quantcast
Channel: Forums - ArcGIS for Desktop - General
Viewing all articles
Browse latest Browse all 2565

SelectLayerByAttribute_management and extent, bug?

$
0
0
Hi,

According to the help/manual the SelectLayerByAttribute_management should limit the results to the specified extent - I can't get this to work!

My little test case, in ArcMap 10.2, where I add cntry08.sdc from the ESRI Data and Maps collection, the following in the Python pane:
  • arcpy.MakeFeatureLayer_management("cntry08","selLayer")
  • env.extent = "-30 -30 30 30"
  • arcpy.SelectLayerByAttribute_management("selLayer","NEW_SELECTION",'"ISO_2DIGIT" <>\'\'')
(This selects all features in the entire feature class)

I get the same result when I specify the extent in the Geoprocessing tab, and when I run the tool from the toolbox, or from the Selection menu.

Am I doing something wrong, or is this a bug... ?

Viewing all articles
Browse latest Browse all 2565

Trending Articles