
    !\iY                     ~   S r SSKrSSKrSSKrSSKJr  SSKrSSKr\R                  S:  a  SSK	J
r
  OSSKJ
r
  SSKrSSKJr  S rS rS	 r\" \R$                  " \
" S
S9\
" SS95      5      \R&                  " 5       \R(                  \R*                  \R,                  " SSS9\R,                  " SSSS9\R,                  " SSSS9\R.                  " \R0                  SS9\R,                  " SSS\S9\R,                  " SSSS\S9\R2                  S 5       5       5       5       5       5       5       5       5       5       5       rg)a9  
Main command group for Rasterio's CLI.

Subcommands developed as a part of the Rasterio package have their own
modules under ``rasterio.rio`` (like ``rasterio/rio/info.py``) and are
registered in the 'rasterio.rio_commands' entry point group in
Rasterio's ``setup.py``:

    entry_points='''
        [console_scripts]
        rio=rasterio.rio.main:main_group

        [rasterio.rio_commands]
        bounds=rasterio.rio.bounds:bounds
        calc=rasterio.rio.calc:calc
        ...

Users may create their own ``rio`` subcommands by writing modules that
register entry points in Rasterio's 'rasterio.rio_plugins' group. See
for example https://github.com/sgillies/rio-plugin-example, which has
been published to PyPI as ``rio-metasay``.

There's no advantage to making a ``rio`` subcommand which doesn't
import rasterio. But if you are using rasterio, you may profit from
Rasterio's CLI infrastructure and the network of existing commands.
Please add yours to the registry

  https://github.com/rasterio/rasterio/wiki/Rio-plugin-registry

so that other ``rio`` users may find it.
    N)with_plugins)   
   )entry_points)
AWSSessionc                 n    [        SSSU -  -
  5      n[        R                  " [        R                  US9  g )Nr      )streamlevel)maxloggingbasicConfigsysstderr)	verbosity	log_levels     T/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/rio/main.pyconfigure_loggingr   2   s+    BR)^+,Iszz;    c                     U(       a  U R                   (       a  g [        R                  " [        R                   U R
                  S9  U R                  5         g )N)color)resilient_parsingclickechorasterio__gdal_version__r   exitctxparamvalues      r   gdal_version_cbr"   7   s4    C))	JJ(++,SYY?HHJr   c                     U(       a  U R                   (       a  g [        R                  " 5         U R                  5         g )N)r   r   show_versionsr   r   s      r   show_versions_cbr%   >   s%    C))HHJr   zrasterio.rio_commands)groupzrasterio.rio_pluginsz--aws-profilez.Select a profile from the AWS credentials file)helpz--aws-no-sign-requestsTzMake requests anonymously)is_flagr'   z--aws-requester-paysz"Requester pays data transfer costsz%(version)s)versionmessagez--gdal-version)is_eagerr(   callbackz--show-versionszShow dependency versions)r'   r+   r(   r,   c           
      D   X-
  n[        U5        0 U l        XR                  S'   X0R                  S'   SUS:  0n	U(       d  U(       d  U(       a/  [        R                  " S	S[	        UUUS90U	D6U R                  S'   g[        R                  " S	0 U	D6U R                  S'   g)
z%Rasterio command line interface.
    r   aws_profile	CPL_DEBUG   session)profile_nameaws_unsignedrequester_paysenvN )r   objr   Envr   )
r   verbosequietr.   aws_no_sign_requestsaws_requester_paysgdal_versionr$   r   envoptss
             r   
main_groupr?   F   s    @ Ii CG$GGK(GGMY],G*.@! (11
  "00r   )__doc__	itertoolsr   r   click_pluginsr   r   cligjversion_infoimportlib_metadatar   importlib.metadatar   rasterio.sessionr   r   r"   r%   chainr&   verbose_opt	quiet_optoptionversion_option__version__pass_contextr?   r6   r   r   <module>rO      sV  @   
 &  g//  '<
 OO2312 J &;VWD/S h22MJtoV&@4Y]hxy1  z W K X   (1r   