add function to convert collection to geojson string