
    !\i                        S r SSKJr   " S S\5      r " S S\5      r " S S\5      r " S	 S
\5      r " S S\5      r	 " S S\\5      r
 " S S\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r " S S \5      r " S! S"\5      r " S# S$\5      r " S% S&\5      r " S' S(\5      r " S) S*\5      r " S+ S,\5      r " S- S.\5      r " S/ S0\5      r " S1 S2\5      r  " S3 S4\\!5      r" " S5 S6\5      r# " S7 S8\5      r$ " S9 S:\5      r% " S; S<\5      r& " S= S>\5      r' " S? S@\5      r( " SA SB\5      r) " SC SD\5      r* " SE SF\5      r+ " SG SH\5      r,gI)JzErrors and Warnings.    )	FileErrorc                       \ rS rSrSrSrg)RasterioError   zRoot exception class N__name__
__module____qualname____firstlineno____doc____static_attributes__r       R/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/errors.pyr   r      s    r   r   c                       \ rS rSrSrSrg)InvalidArrayError
   z-Raised when methods are passed invalid arraysr   Nr   r   r   r   r   r   
   s    7r   r   c                       \ rS rSrSrSrg)WindowError   z1Raised when errors occur during window operationsr   Nr   r   r   r   r   r      s    ;r   r   c                       \ rS rSrSrSrg)CRSError   zeRaised when a CRS string or mapping is invalid or cannot serve
to define a coordinate transformation.r   Nr   r   r   r   r   r      s    .r   r   c                       \ rS rSrSrSrg)EnvError   zLRaised when the state of GDAL/AWS environment cannot be created
or modified.r   Nr   r   r   r   r   r      s    r   r   c                       \ rS rSrSrSrg)DriverCapabilityError   z<Raised when a format driver can't a feature such as writing.r   Nr   r   r   r   r   r          Fr   r   c                       \ rS rSrSrSrg)DriverRegistrationError    z?Raised when a format driver is requested but is not registered.r   Nr   r   r   r   r"   r"       s    Ir   r"   c                   ,   ^  \ rS rSrSrU 4S jrSrU =r$ )FileOverwriteError$   z;Raised when Rasterio's CLI refuses to clobber output files.c                 "   > [         TU ]  SUS9  g)z.Raise FileOverwriteError with message as hint. )hintN)super__init__)selfmessage	__class__s     r   r+   FileOverwriteError.__init__'   s    '*r   r   )r	   r
   r   r   r   r+   r   __classcell__)r.   s   @r   r%   r%   $   s    E+ +r   r%   c                       \ rS rSrSrSrg)RasterioIOError,   z3Raised when a dataset cannot be opened or accessed.r   Nr   r   r   r   r2   r2   ,   s    =r   r2   c                       \ rS rSrSrS rSrg)NodataShadowWarning0   zCWarn that a dataset's nodata attribute is shadowing its alpha band.c                     g)NzpThe dataset's nodata attribute is shadowing the alpha band. All masks will be determined by the nodata attributer   )r,   s    r   __str__NodataShadowWarning.__str__3   s    *r   r   N)r	   r
   r   r   r   r8   r   r   r   r   r5   r5   0   s
    M+r   r5   c                       \ rS rSrSrSrg)NotGeoreferencedWarning9   z(Warn that a dataset isn't georeferenced.r   Nr   r   r   r   r;   r;   9   s    2r   r;   c                       \ rS rSrSrSrg)TransformWarning=   z<Warn that coordinate transformations may behave unexpectedlyr   Nr   r   r   r   r>   r>   =   r    r   r>   c                       \ rS rSrSrSrg)RPCErrorA   z)Raised when RPC transformation is invalidr   Nr   r   r   r   rA   rA   A       3r   rA   c                       \ rS rSrSrSrg)ShapeSkipWarningE   zDWarn that an invalid or empty shape in a collection has been skippedr   Nr   r   r   r   rE   rE   E       Nr   rE   c                       \ rS rSrSrSrg)GDALBehaviorChangeExceptionI   a  Raised when GDAL's behavior differs from the given arguments.  For
example, antimeridian cutting is always on as of GDAL 2.2.0.  Users
expecting it to be off will be presented with a MultiPolygon when the
rest of their code expects a Polygon.

Examples
--------

.. code-block:: python

    # Raises an exception on GDAL >= 2.2.0
    rasterio.warp.transform_geometry(
        src_crs, dst_crs, antimeridian_cutting=False)
r   Nr   r   r   r   rI   rI   I   s    r   rI   c                       \ rS rSrSrSrg)GDALOptionNotImplementedErrorZ   zA dataset opening or dataset creation option can't be supported

This will be raised from Rasterio's shim modules. For example, when
a user passes arguments to open_dataset() that can't be evaluated
by GDAL 1.x.
r   Nr   r   r   r   rL   rL   Z   s    r   rL   c                       \ rS rSrSrSrg)GDALVersionErrorc   zQRaised if the runtime version of GDAL does not meet the required version of GDAL.r   Nr   r   r   r   rO   rO   c   s    [r   rO   c                       \ rS rSrSrSrg)WindowEvaluationErrorg   z#Raised when window evaluation failsr   Nr   r   r   r   rR   rR   g       -r   rR   c                       \ rS rSrSrSrg)RasterioDeprecationWarningk   zRasterio module deprecations

Following https://www.python.org/dev/peps/pep-0565/#additional-use-case-for-futurewarning
we base this on FutureWarning while continuing to support Python < 3.7.
r   Nr   r   r   r   rV   rV   k   s    r   rV   c                       \ rS rSrSrSrg)RasterBlockErrors   z%Raised when raster block access failsr   Nr   r   r   r   rY   rY   s       /r   rY   c                       \ rS rSrSrSrg)BandOverviewErrorw   z)Raised when a band overview access fails.r   Nr   r   r   r   r]   r]   w   rC   r   r]   c                       \ rS rSrSrSrg)WarpOptionsError{   z4Raised when options for a warp operation are invalidr   Nr   r   r   r   r`   r`   {   s    >r   r`   c                       \ rS rSrSrSrg)UnsupportedOperation   z2Raised when reading from a file opened in 'w' moder   Nr   r   r   r   rc   rc          <r   rc   c                       \ rS rSrSrSrg)OverviewCreationError   z)Raised when creation of an overview failsr   Nr   r   r   r   rg   rg      rC   r   rg   c                       \ rS rSrSrSrg)DatasetAttributeError   z*Raised when dataset attributes are misusedr   Nr   r   r   r   rj   rj          4r   rj   c                       \ rS rSrSrSrg)	PathError   z2Raised when a dataset path is malformed or invalidr   Nr   r   r   r   rn   rn      re   r   rn   c                       \ rS rSrSrSrg)ResamplingAlgorithmError   z=Raised when a resampling algorithm is invalid or inapplicabler   Nr   r   r   r   rq   rq      s    Gr   rq   c                       \ rS rSrSrSrg)TransformError   z+Raised when transform arguments are invalidr   Nr   r   r   r   rt   rt      s    5r   rt   c                       \ rS rSrSrSrg)WarpedVRTError   z*Raised when WarpedVRT can't be initializedr   Nr   r   r   r   rw   rw      rl   r   rw   c                       \ rS rSrSrSrg)DatasetIOShapeError   zDRaised when data buffer shape is a mismatch when reading and writingr   Nr   r   r   r   rz   rz      rG   r   rz   c                       \ rS rSrSrSrg)WarpOperationError   z#Raised when a warp operation fails.r   Nr   r   r   r   r}   r}      rT   r   r}   c                       \ rS rSrSrSrg)StatisticsError   z2Raised when dataset statistics cannot be computed.r   Nr   r   r   r   r   r      re   r   r   c                       \ rS rSrSrSrg)OpenerRegistrationError   z7Raised when a Python file opener can not be registered.r   Nr   r   r   r   r   r      s    Ar   r   c                       \ rS rSrSrSrg)
MergeError   z%Raised when rasters cannot be merged.r   Nr   r   r   r   r   r      r[   r   r   c                       \ rS rSrSrSrg)
StackError   z&Raised when rasters cannot be stacked.r   Nr   r   r   r   r   r      s    0r   r   N)-r   clickr   	Exceptionr   r   r   
ValueErrorr   r   r   r"   r%   OSErrorr2   UserWarningr5   r;   r>   rA   rE   RuntimeErrorrI   rL   rO   rR   FutureWarningrV   rY   r]   r`   rc   rg   NotImplementedErrorrj   rn   rq   rt   rw   rz   r}   r   r   r   r   r   r   r   <module>r      s    I 8 8<- <.z .
} 
GM: GJj J+ +>mW >++ +3k 3G{ G4z 4O{ O, "M \} \.J . 0} 04 4?} ?== =4M 45M+> 5= =H} H6] 65] 5O- O. .=m =Bm B0 01 1r   