
    Dh              
       :   S r SSKrSSKrSSKJrJr  SSKrSSKJr  SSK	J
r
  SSKJr  \R                  " SS9\\R                  " S	S
SS9\R                  " SS
SS9\R                  " SS
SS9\\R                  \
S 5       5       5       5       5       5       5       5       rg)z$ fio bounds    N)precision_opt
use_rs_opt)obj_gen)with_context_env)ObjectEncoderz#Print the extent of GeoJSON objects)
short_helpz--explode/--no-explodeFz0Explode collections into features (default: no).)defaulthelpz--with-id/--without-idzAPrint GeoJSON ids and bounding boxes together (default: without).z--with-obj/--without-objzEPrint GeoJSON objects and bounding boxes together (default: without).c           	        ^ [         R                  " S5      n[        U5      n[        U5       GH  u  pU	R	                  SS[        U5      -   5      n
/ n/ nU	R	                  S5      =(       d    U	/n[        U5       GH  u  pUR	                  SS[        U5      -   5      n[        R                  " U5      u  nnnnTS:  a  U4S jUUUU4 5       u  nnnnU(       a  U(       a  U
UUUUU4S.nO$U(       a  UR                  U
UUUU4S	9  UnOUUUU4nU(       a  [         R                  " S
SS9  [         R                  " [        R                  " U[        S95        M  UR                  UU/5        UR                  UU/5        GM     U(       a  GMe  [        U5      [        U5      [        U5      [        U5      4u  nnnnU(       a
  U
UUUU4S.nO$U(       a  U	R                  U
UUUU4S9  U	nOUUUU4nU(       a  [         R                  " S
SS9  [         R                  " [        R                  " U[        S95        GM     g)a  Print the bounding boxes of GeoJSON objects read from stdin.

Optionally explode collections and print the bounds of their
features.

To print identifiers for input objects along with their bounds
as a {id: identifier, bbox: bounds} JSON object, use --with-id.

To print the input objects themselves along with their bounds
as GeoJSON object, use --with-obj. This has the effect of updating
input objects with {id: identifier, bbox: bounds}.

stdinidzcollection:featureszfeature:r   c              3   <   >#    U  H  n[        UT5      v   M     g 7f)N)round).0v	precisions     cC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\fiona/fio/bounds.py	<genexpr>bounds.<locals>.<genexpr>7   s     H<aeAy11<s   )parentr   bbox)r   r   F)nl)cls)r   r   N)clickget_text_streamr   	enumerategetstrfionaboundsupdateechojsondumpsr   extendminmax)ctxr   explodewith_idwith_objuse_rsr   sourceiobjobj_idxsysr   jfeatfeat_idwsenrecs    `                    r   r"   r"      s   6 !!'*EU^FF#}s1v5677:&/3% *GAhhtZ#a&%89Gd+JAq!Q1}HAq!Q<H
1a%+7Q1aLQCKKvQ1aLKACaA,CJJv%0

4::c}=> 		1a&!		1a&!/ +2 wb'3r7CGSW=JAq!Q#aAq\:

fAq!Q<
8!Ql

6e,JJtzz#=9:[ $    )__doc__r%   r   cligjr   r   r!   fiona.fio.helpersr   	fiona.fior   fiona.modelr   commandoptionpass_contextr"    r=   r   <module>rG      s       +  % & % ?@&EG&)* (%)* >;   **G  A>;r=   