
    _ h:	                     .   d dl Z d dlZd dlZd dlmZmZmZmZm	Z	m
Z
mZmZ d dlmZmZ d dlmZmZ d Z G d d      Zd Zd	 Zej.                  j1                  d
 e        e        e        e	        e        e
        e        e       g      d        Zy)    N)GeometryCollection
LinearRing
LineStringMultiLineString
MultiPointMultiPolygonPointPolygon)mappingshape)BaseGeometryEmptyGeometryc                      t        g       S N)iter     /home/developers/rajanand/mypropertyqr-fmb-refixing-v2/venv/lib/python3.12/site-packages/shapely/tests/geometry/test_emptiness.pyempty_generatorr      s    8Or   c                   H    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zy)TestEmptinessc                     t        j                  t              5  t               }d d d        j                  sJ y # 1 sw Y   xY wr   )pytestwarnsFutureWarningr   is_emptyselfgs     r   test_empty_classzTestEmptiness.test_empty_class   s6    \\-( 	 A	 zzz	  	 	   <Ac                     t        j                  t              5  t               }d d d        j                  sJ y # 1 sw Y   xY wr   )r   r   r   r   r   r   s     r   test_empty_basezTestEmptiness.test_empty_base   s6    \\-( 	A	zzz	 	r!   c                 0    t               j                  sJ y r   )r	   r   r   s    r   test_empty_pointzTestEmptiness.test_empty_point#   s    wr   c                 0    t               j                  sJ y r   )r   r   r%   s    r   test_empty_multipointz#TestEmptiness.test_empty_multipoint&   s    |$$$$r   c                 0    t               j                  sJ y r   )r   r   r%   s    r   test_empty_geometry_collectionz,TestEmptiness.test_empty_geometry_collection)   s    !#,,,,r   c                     t               j                  sJ t        d       j                  sJ t        g       j                  sJ t        t                     j                  sJ y r   )r   r   r   r%   s    r   test_empty_linestringz#TestEmptiness.test_empty_linestring,   Q    |$$$$$(((("~&&&&/+,5555r   c                 2    t        g       j                  sJ y r   )r   r   r%   s    r   test_empty_multilinestringz(TestEmptiness.test_empty_multilinestring2   s    r"++++r   c                     t               j                  sJ t        d       j                  sJ t        g       j                  sJ t        t                     j                  sJ y r   )r
   r   r   r%   s    r   test_empty_polygonz TestEmptiness.test_empty_polygon5   sP    y!!!!t}%%%%r{####()2222r   c                 2    t        g       j                  sJ y r   )r   r   r%   s    r   test_empty_multipolygonz%TestEmptiness.test_empty_multipolygon;   s    B((((r   c                     t               j                  sJ t        d       j                  sJ t        g       j                  sJ t        t                     j                  sJ y r   )r   r   r   r%   s    r   test_empty_linear_ringz$TestEmptiness.test_empty_linear_ring>   r-   r   N)__name__
__module____qualname__r    r#   r&   r(   r*   r,   r/   r1   r3   r5   r   r   r   r   r      s4    

 %-6,3)6r   r   c                  j    t               t               g} t        j                  dt              }| |d d  y )N   )r	   r   npemptyobject)geomsarrs     r   test_numpy_object_arrayr@   E   s+    W(*+E
((1f
CCFr   c                  `    t               } t        |       }t        |      }|j                  sJ y r   )r   r   r   r   )empty_mp
empty_jsonempty_shapes      r   test_shape_emptyrE   K   s,    ~H"J
#Kr   geomc                 t    t        | j                        dk(  sJ t        d | j                  D              sJ y)z2The bounds of an empty geometry is a tuple of NaNs   c              3   F   K   | ]  }t        j                  |        y wr   )mathisnan).0vs     r   	<genexpr>z-test_empty_geometry_bounds.<locals>.<genexpr>b   s     2tzz!}2s   !N)lenboundsall)rF   s    r   test_empty_geometry_boundsrR   R   s3     t{{q   2dkk2222r   )rJ   numpyr;   r   shapelyr   r   r   r   r   r   r	   r
   shapely.geometryr   r   shapely.geometry.baser   r   r   r   r@   rE   markparametrizerR   r   r   r   <module>rY      s      	 	 	 , =*6 *6Z  
		33r   