a
    1$e                     @   s\   d Z ddlZddlZddlZddlmZmZ ddlmZ e	 ej
ejedd ZdS )z$ fio distrib    N)helperswith_context_env)ObjectEncoderc                 C   s   t d}t|}t|D ]\}}|ddt| }|dpF|g}t|D ]`\}}	|ddkrn||	d< |	ddt| }
|
|	d< |rt jd	d
d t tj	|	t
d qPqdS )zhDistribute features from a collection.

    Print the features of GeoJSON objects read from stdin.

    stdinidzcollection:featurestypeZFeatureCollectionparentzfeature:F)nl)clsN)clickget_text_streamr   Zobj_gen	enumerategetstrechojsondumpsr   )ctxZuse_rsr   sourceiobjobj_idr   jZfeatZfeat_id r   M/var/www/html/django/DPS/env/lib/python3.9/site-packages/fiona/fio/distrib.pydistrib   s    


r   )__doc__r   r   ZcligjZ	fiona.fior   r   Zfiona.modelr   commandZ
use_rs_optpass_contextr   r   r   r   r   <module>   s   