function writeGeometryCollectionGeometry(geometry, options) {
  options = Object.assign({}, options);
  delete options.featureProjection;
  const geometries = geometry.getGeometriesArray().map(function (geometry) {
    return writeGeometry(geometry, options);
  });
  return {
    type: 'GeometryCollection',
    geometries: geometries,
  };
}
@param {import("../geom/GeometryCollection.js").default} geometry Geometry.
@param {import("./Feature.js").WriteOptions} [options] Write options.
@return {GeoJSONGeometryCollection} GeoJSON geometry collection.