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:
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... ?
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" <>\'\'')
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... ?