a
    1$eM                     @   sh   d dl Z d dlmZ ddgZe jeZdd ee 	ed D Z
dd	iZe
ee  Zd
d ZdS )    N)warn	availableget_pathc                 C   s   g | ]}| d s|qS )__)
startswith).0p r	   W/var/www/html/django/DPS/env/lib/python3.9/site-packages/geopandas/datasets/__init__.py
<listcomp>       r      Znybbznybb_16a.zipc                 C   s   d}d}d|  dd| v r|n| }| t v rVt|tdd tjtjt| | d S | tv rt|tdd tjtjtt|  }d	| S d
j	| d}|d	dt
7 }t|dS )a  
    Get the path to the data file.

    Parameters
    ----------
    dataset : str
        The name of the dataset. See ``geopandas.datasets.available`` for
        all options.

    Examples
    --------
    >>> geopandas.datasets.get_path("naturalearth_lowres")  # doctest: +SKIP
    '.../python3.8/site-packages/geopandas/datasets/naturalearth_lowres/naturalearth_lowres.shp'

    zBhttps://www.naturalearthdata.com/downloads/110m-cultural-vectors/.z[the geodatasets package.

from geodatasets import get_path
path_to_file = get_path('nybb')
zkThe geopandas.dataset module is deprecated and will be removed in GeoPandas 1.0. You can get the original 'z' data from Znatural   )
stacklevelz.shpzzip://z'The dataset '{data}' is not available. )datazAvailable datasets are {}z, N)_available_dirr   FutureWarningospathabspathjoin_module_path_available_zipformatr   
ValueError)ZdatasetZ
ne_messageZnybb_messageZdepr_warningZfpathmsgr	   r	   r
   r      s6    )r   warningsr   __all__r   dirname__file__r   nextwalkr   r   listkeysr   r   r	   r	   r	   r
   <module>   s   