Thanks, Barry. gDistance with byid=T works beautifully! John -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Calculate-matrix-of-distances-from-points-to-multiple-polygons-tp7582204p7582228.html Sent from the R-sig-geo mailing list archive at Nabble.com.