I have an empty raster file (r1) and I want to calculate for each of the non-NA cells, the euclidian distance to the nearest polygons (S1 shp). Both r1 and S1 are projected