I'm using Google Earth Engine and I know how to import and export imges giving on a coordinates from a shapefile, but let's say I have a shapefile with different regions where each region has its own coordinates as polygons. I need to know how can I get image collection for each coordinates rather than one giant image that covers all the coordinates in the shapefile.

I thought about looping through the coordinates in the shapefile and take each coordinates in each row, but had some issues there too. I have been searching for this for a couple of days now and nothing is quite getting me there.

**Edit**
Okay, This is what I made so far.

```js
var S2 = ee.ImageCollection("COPERNICUS/S2"),
boundary = ee.FeatureCollection("users/rashagh22/mygeodata");
var vis_params = {bands:["B4", "B3", "B2"], max:2000};
var start_date = '2017-01-01';
var end_date = '2018-01-01';

//Extract the coordinates from the feature collcetion
var multi_polygons =  ee.Geometry(boundary.geometry());
var geometries = multi_polygons.geometries();

print(geometries.get(0));

//Function that takes roi and returns image collection
var image_coll = function(s2, roi, start_date, end_date) {
  return s2.filterDate(start_date, end_date).filterBounds(roi)
  .filterMetadata('CLOUD_COVERAGE_ASSESSMENT', 'less_than', 1);
};
print(geometries.size())

var addImageCollections = function(feature) {
  return feature.set({images: S2.filterDate(start_date, end_date).filterBounds(feature.geometry())
  .filterMetadata('CLOUD_COVERAGE_ASSESSMENT', 'less_than', 1)});
};

var imagesAdded = boundary.map(addImageCollections);

print(imagesAdded);

```

Noe I have a feature collection with image collection as one of its columns. But not sure how to access them now