Add function to write GeoJson