That works perfectly. Thanks so much Rafael, you are a true hero! -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/extract-by-attributes-from-raster-image-to-polygons-tp7576826p7580086.html Sent from the R-sig-geo mailing list archive at Nabble.com.