added writing output SHP for each input dataset

doesn’t fully work yet, the OGRFeatures are empty :/