if (!it.hasNext())
throw new IllegalArgumentException("The provided FeatureCollection<SimpleFeatureType, SimpleFeature> or empty, it's impossible to create an index!");
footprintWriter = new FileWriter(footprintSummaryFile);
final BufferedWriter writer = new BufferedWriter(footprintWriter);
final WKTWriter geometryWriter = new WKTWriter();
// Scan the index shapefile to get granules location
while (it.hasNext()) {
final SimpleFeature feature = it.next();
final String location = (String) feature.getAttribute("location");