
    !\i                     H    S r SSKrSSKrSSKJr   " S S5      r\" \5      rg)zlRasterio tools module

See this RFC about Rasterio tools:
https://github.com/rasterio/rasterio/issues/1300.
    N)dataset_featuresc                   (    \ rS rSrSrS rSS jrSrg)JSONSequenceTool   z@Extracts data from a dataset file and saves a JSON sequence
    c                     Xl         g)zInitialize tool

Parameters
----------
func : callable
    A function or other callable object that takes a dataset and
    yields JSON serializable objects.
Nfunc)selfr	   s     Q/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/rasterio/tools.py__init__JSONSequenceTool.__init__   s	     	    Nc                    U=(       d    0 nU=(       d    0 nU=(       d    / nU=(       d    0 nU=(       d    0 n[         R                  " S0 UD6   [        US5       n[         R                  " U40 UD6 n	U R                  " U	/UQ70 UD6 H)  n
UR	                  [
        R                  " U
40 UD65        M+     SSS5        SSS5        SSS5        g! , (       d  f       N= f! , (       d  f       N(= f! , (       d  f       g= f)a
  Execute the tool's primary function and perform file I/O

Parameters
----------
src_path : str or PathLike object
    A dataset path or URL. Will be opened in "r" mode using
    src_opts.
dst_path : str or Path-like object
    A path or or PathLike object. Will be opened in "w" mode.
src_kwargs : dict
    Options that will be passed to rasterio.open when opening
    src.
dst_kwargs : dict
    Options that will be passed to json.dumps when serializing
    output.
func_args : sequence
    Extra positional arguments for the tool's primary function.
func_kwargs : dict
    Extra keyword arguments for the tool's primary function.
config : dict
    Rasterio Env options.

Returns
-------
None

Side effects
------------
Writes sequences of JSON texts to the named output file.
wN )rasterioEnvopenr	   writejsondumps)r
   src_pathdst_path
src_kwargs
dst_kwargs	func_argsfunc_kwargsconfigfdstdsrcobjs              r   __call__JSONSequenceTool.__call__   s    @  %2
%2
O	!'R2\\#F#h$hmmH.S
.SW[99TEIEECJJtzz#<<= F /T$ $#.S.S$$ $#s=   C2C!3AC7C!?C2
CC!!
C/	+C22
D r   )NNNNN)__name__
__module____qualname____firstlineno____doc__r   r"   __static_attributes__r   r   r   r   r      s    	)>r   r   )r(   r   r   rasterio.featuresr   r   dataset_features_toolr   r   r   <module>r,      s.      .8> 8>v ))9: r   