
    \i                         S SK r S SKrS SKJrJrJrJr   " S S\ R                  5      r " S S\ R                  5      r	 " S S\ R                  5      r
g)	    N)
LinearRingPolygonorientsigned_areac                        \ rS rSrS rS rSrg)SignedAreaTestCase   c                 h    [        / SQ5      n[        U5      [        R                  " S5      :X  d   eg )N)r   r   )      )   r   g     1r   r   pytestapprox)selftris     `/var/www/html/kml_chatgpt/mouzaenv/lib/python3.13/site-packages/shapely/tests/legacy/test_cga.pytest_triangle SignedAreaTestCase.test_triangle	   s)    1236==#<<<<    c                     Su  pSu  p4[        X4X#4X$4X4X4/5      n[        U5      [        R                  " S5      :X  d   eg )N)   )   g      $@r   )r   xminxmaxyminymaxrects         r   test_squareSignedAreaTestCase.test_square   sP    

\D<$|d\R
 4 FMM$$7777r    N)__name__
__module____qualname____firstlineno__r   r"   __static_attributes__r$   r   r   r   r      s    =8r   r   c                        \ rS rSrS rS rSrg)RingOrientationTestCase   c                 D    [        / SQ5      nUR                  (       d   eg )N)r   r   r   r   r   r   is_ccwr   rings     r   test_ccw RingOrientationTestCase.test_ccw   s    23{{{r   c                 D    [        / SQ5      nUR                  (       a   eg )Nr   r/   r.   r0   r2   s     r   test_cwRingOrientationTestCase.test_cw   s    23;;;r   r$   N)r%   r&   r'   r(   r4   r8   r)   r$   r   r   r+   r+      s    r   r+   c                        \ rS rSrS rS rSrg)PolygonOrienterTestCase    c                     [        / SQ5      n[        U5      nUR                  R                  (       a   e[	        US5      nUR                  R                  (       d   eg )Nr7   r   )r   r   exteriorr1   r   )r   r3   polygons      r   test_no_holes%PolygonOrienterTestCase.test_no_holes!   sL    23$-##****!$&&&&r   c                 2   [        / SQ/ SQ/5      nUR                  R                  (       a   eUR                  S   R                  (       d   e[	        US5      nUR                  R                  (       d   eUR                  S   R                  (       a   eg )Nr7   ))      ?      ?)rD   rC   )rD   rD   r   r   )r   r>   r1   	interiorsr   )r   r?   s     r   
test_holes"PolygonOrienterTestCase.test_holes(   s    $56

 ##****  #****!$&&&&$$Q'.....r   r$   N)r%   r&   r'   r(   r@   rF   r)   r$   r   r   r;   r;       s    '/r   r;   )unittestr   shapely.geometry.polygonr   r   r   r   TestCaser   r+   r;   r$   r   r   <module>rK      sG      M M8** 8h// /h// /r   