Wednesday, November 23, 2011

Clearing a selection from select by location

After performing a select layer by location function, sometimes you need to clear it, but the select by location function does not have a "CLEAR" option, so what to do?..?  Well no fear, you can use the following:

arcpy.SelectLayerByAttribute_management(layer, "CLEAR_SELECTION")

and magically your rows will no longer be selected.