def _get_srid(gdf):
    """Extract srid from gdf and default to -1 if there isn't one.

    Parameters
    ----------
    gdf : GeoDataFrame

    Returns
    -------
    int
    """
    if gdf.crs is not None:
        return gdf.crs.to_epsg()
    return -1