def to_geojson(series):
    """Return a GeoJSON geometry collection from the series (must be in EPSG:4326).
    Did not use the builtin for the series since it introduces a lot of bloat.
    """

    return {
        "type": "GeometryCollection",
        "geometries": series.apply(lambda x: x.__geo_interface__).to_list(),
    }