
    (&h:	                     j   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                            d
 e             e             e             e	             e             e
             e             e            g          d             ZdS )    N)GeometryCollection
LinearRing
LineStringMultiLineString
MultiPointMultiPolygonPointPolygon)mappingshape)BaseGeometryEmptyGeometryc                       t          g           S N)iter     `/var/www/html/reinick/venv/lib/python3.11/site-packages/shapely/tests/geometry/test_emptiness.pyempty_generatorr      s    88Or   c                   J    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 ZdS )TestEmptinessc                     t          j        t                    5  t                      }d d d            n# 1 swxY w Y   |j        sJ d S r   )pytestwarnsFutureWarningr   is_emptyselfgs     r   test_empty_classzTestEmptiness.test_empty_class   s    \-(( 	  	 A	  	  	  	  	  	  	  	  	  	  	  	  	  	  	 z   599c                     t          j        t                    5  t                      }d d d            n# 1 swxY w Y   |j        sJ d S r   )r   r   r   r   r   r   s     r   test_empty_basezTestEmptiness.test_empty_base   s    \-(( 	 	A	 	 	 	 	 	 	 	 	 	 	 	 	 	 	zr!   c                 0    t                      j        sJ d S r   )r	   r   r   s    r   test_empty_pointzTestEmptiness.test_empty_point#   s    wwr   c                 0    t                      j        sJ d S r   )r   r   r%   s    r   test_empty_multipointz#TestEmptiness.test_empty_multipoint&   s    ||$$$$$$r   c                 0    t                      j        sJ d S 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 d S r   )r   r   r   r%   s    r   test_empty_linestringz#TestEmptiness.test_empty_linestring,   d    ||$$$$$(((("~~&&&&/++,,555555r   c                 2    t          g           j        sJ d S 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 d S r   )r
   r   r   r%   s    r   test_empty_polygonz TestEmptiness.test_empty_polygon5   sb    yy!!!!t}}%%%%r{{####(())222222r   c                 2    t          g           j        sJ d S 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 d S 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      s          
  
     % % %- - -6 6 6, , ,3 3 3) ) )6 6 6 6 6r   r   c                      t                      t                      g} t          j        dt                    }| |d d <   d S )N   )r	   r   npemptyobject)geomsarrs     r   test_numpy_object_arrayr@   E   s9    WW(**+E
(1f

CCFFFr   c                  p    t                      } t          |           }t          |          }|j        sJ d S r   )r   r   r   r   )empty_mp
empty_jsonempty_shapes      r   test_shape_emptyrE   K   s:    ~~H""J
##Kr   geomc                 z    t          | j                  dk    sJ t          d | j        D                       sJ dS )z2The bounds of an empty geometry is a tuple of NaNs   c              3   >   K   | ]}t          j        |          V  d S r   )mathisnan).0vs     r   	<genexpr>z-test_empty_geometry_bounds.<locals>.<genexpr>b   s*      22tz!}}222222r   N)lenboundsall)rF   s    r   test_empty_geometry_boundsrR   R   sJ     t{q    22dk222222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 *6 *6 *6 *6 *6 *6 *6Z        

		

	 3 3 3 3 3r   