I want to extract specific values of raster layer. Use codes as follows:
attExtract=arcpy.sa.ExtractByAttributes(outraster,'VALUE==8 | \ VALUE==9 | VALUE==10 | VALUE==16')
system hint the SQL is invalid:
ExecuteError: ERROR 999999: Error executing function. An invalid SQL statement was used. An invalid SQL statement was used. Failed to execute (ExtractByAttributes).
How to write the operation bool code?