fRddlZddlZddlmZmZddlZddlZddlmZddlZddZ dS)N)ThreadPoolExecutor as_completed)ProcessPoolExecutor intersectionc\|j}|j}t|t|kr||}}||kr#td|d|ttd|j|dd}i}t |d|dD]+\}}||vr|||%|g||<,g} td t|D]\} }|j |g} tj | | } |j ||} | | |d } | | t| d t|t| dkrtj| }ng}|S)Nzerror : crs_mismatch under : z , over: zcreating_spatial index...geometry intersects) predicaterz executing...)crsF)howkeep_geom_type/)r lenprintexitsindexqueryzipappend enumerateilocgpd GeoDataFrameoverlaypdconcat)underoverr under_crsover_crssindex_query_resulttask_quekeyvalue intersectionsiref_poly comp_polyrresulting_intersection_geoms W/home/juni/문서/경상북도_CCTV_설치_분석/tools/spatial_indexed_intersection.py geom_overlayr,GsIyH 5zzCJJ"Et9 PPPhPPQQQ  %&&&,,,T*-=,VVH-a02Ea2HII$$ U (? $ SM  ' ' ' '"GHSMMM .H%%&&3:se$#H(;;;Ihsm, '' s5'QQ \*** $$S]]$$%%%% =A)&(i &>&>##&(# &&)r) geopandasrpandasrconcurrent.futuresrrrosr,r-r+r3s????????222222 ~('('('('('('r-