+
    Tj                     P    R t ^ RIHtHt ^ RIHt  ! R R]4      t ! R R4      tR# )a  
The GDAL/OGR library uses an Envelope structure to hold the bounding
box information for a geometry. The envelope (bounding box) contains
two pairs of coordinates, one for the lower left coordinate and one
for the upper right coordinate:

                          +----------o Upper right; (max_x, max_y)
                          |          |
                          |          |
                          |          |
Lower left (min_x, min_y) o----------+
)	Structurec_double)GDALExceptionc                   6    ] tR t^tRtR]3R]3R]3R]3.tRtR# )OGREnvelopez&Represent the OGREnvelope C Structure.MinXMaxXMinYMaxY N)__name__
__module____qualname____firstlineno____doc__r   _fields___static_attributes__r       U/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/gdal/envelope.pyr   r      s.    , 
				Hr   r   c                      a  ] tR t^!t o RtR tR tR tR tR t	]
R 4       t]
R 4       t]
R	 4       t]
R
 4       t]
R 4       t]
R 4       t]
R 4       t]
R 4       tRtV tR# )Envelopez
The Envelope object is a C structure that contains the minimum and
maximum X, Y coordinates for a rectangle bounding box. The naming
of the variables is compatible with the OGR Envelope structure.
c                   \        V4      ^8X  d   \        V^ ,          \        4      '       d   V^ ,          V n        M\        V^ ,          \        \
        34      '       dS   \        V^ ,          4      ^8w  d#   \        R\        V^ ,          4      ,          4      hV P                  V^ ,          4       Mx\        R\        V^ ,          4      ,          4      h\        V4      ^8X  d,   T P                  V Uu. uF  p\        V4      NK  	  up4       M\        R\        V4      ,          4      hV P                  V P                  8  d   \        R4      hV P                  V P                  8  d   \        R4      hR# u upi )zt
The initialization function may take an OGREnvelope structure,
4-element tuple or list, or 4 individual arguments.
(Incorrect number of tuple elements (%d).Incorrect type of argument: %s#Incorrect number (%d) of arguments.zEnvelope minimum X > maximum X.zEnvelope minimum Y > maximum Y.N)len
isinstancer   	_envelopetuplelistr   _from_sequence	TypeErrortypefloatmin_xmax_xmin_ymax_y)selfargsas   &* r   __init__Envelope.__init__(   s!    t9>$q';//!%aDGeT]33tAw<1$'BSa\Q  ''Q0 @4Q= PQQY!^ 4 84aq4 89 ED	 QRR ::

" ABB::

" ABB # !9s   3E8c                h   \        V\        4      '       d}   V P                  VP                  8H  ;'       d\    V P                  VP                  8H  ;'       d;    V P                  VP                  8H  ;'       d    V P
                  VP
                  8H  # \        V\        4      '       d   \        V4      ^8X  dq   V P                  V^ ,          8H  ;'       dS    V P                  V^,          8H  ;'       d5    V P                  V^,          8H  ;'       d    V P
                  V^,          8H  # \        R4      h)z`
Return True if the envelopes are equivalent; can compare against
other Envelopes and 4-tuples.
z4Equivalence testing only works with other Envelopes.)	r   r   r$   r&   r%   r'   r   r   r   )r(   others   &&r   __eq__Envelope.__eq__I   s   
 eX&&u{{* 0 0ZZ5;;.0 0ZZ5;;.0 0 ZZ5;;.	 u%%#e*/uQx' - -ZZ58+- -ZZ58+- - ZZ58+	   VWWr   c                ,    \        V P                  4      # )z,Return a string representation of the tuple.)strr   r(   s   &r   __str__Envelope.__str___   s    4::r   c                    \        4       V n        V^ ,          V P                  n        V^,          V P                  n        V^,          V P                  n        V^,          V P                  n        R# )z@Initialize the C OGR Envelope structure from the given sequence.N)r   r   r   r	   r   r
   )r(   seqs   &&r   r    Envelope._from_sequencec   sK    $!!f!!f!!f!!fr   c                   \        V4      ^8X  Ede   \        V^ ,          \        4      '       d#   V P                  V^ ,          P                  4      # \        V^ ,          R4      '       dr   \        V^ ,          R4      '       dY   V P                  V^ ,          P                  V^ ,          P                  V^ ,          P                  V^ ,          P                  4      # \        V^ ,          \        \        34      '       EdV   \        V^ ,          4      ^8X  dN   V P                  V^ ,          ^ ,          V^ ,          ^,          V^ ,          ^ ,          V^ ,          ^,          34      # \        V^ ,          4      ^8X  d   V^ ,          w  r#rEW P                  P                  8  d   W P                  n
        W0P                  P                  8  d   W0P                  n        W@P                  P                  8  d   W@P                  n        WPP                  P                  8  d   WPP                  n        R# R# \        R\        V^ ,          4      ,          4      h\        R\!        V^ ,          4      ,          4      h\        V4      ^8X  d2   V P                  V^ ,          V^,          V^ ,          V^,          34      # \        V4      ^8X  d   V P                  V4      # \        R\        V^ ,          4      ,          4      h)z~
Modify the envelope to expand to include the boundaries of
the passed-in 2-tuple (a point), 4-tuple (an extent) or
envelope.
xyr   r   r   N)r   r   r   expand_to_includer   hasattrr:   r;   r   r   r   r	   r   r
   r   r!   r"   )r(   r)   minxminymaxxmaxys   &*    r   r<   Envelope.expand_to_includek   s.    t9>$q'8,,--d1gmm<<a#&&747C+@+@--GIItAwyy$q'))T!WYY  DGeT]33tAw<1$11aT!WQZaT!WQZH  a\Q&/3Aw,Tnn111.2+nn111.2+nn111.2+nn111.2+ 2 (BSa\Q    @4Q= PQQY!^))47DGT!Wd1g*NOOY!^))$// EDQRG TUUr   c                .    V P                   P                  # )z-Return the value of the minimum X coordinate.)r   r   r3   s   &r   r$   Envelope.min_x        ~~"""r   c                .    V P                   P                  # )z-Return the value of the minimum Y coordinate.)r   r	   r3   s   &r   r&   Envelope.min_y   rE   r   c                .    V P                   P                  # )z-Return the value of the maximum X coordinate.)r   r   r3   s   &r   r%   Envelope.max_x   rE   r   c                .    V P                   P                  # )z-Return the value of the maximum Y coordinate.)r   r
   r3   s   &r   r'   Envelope.max_y   rE   r   c                2    V P                   V P                  3# )z"Return the upper-right coordinate.)r%   r'   r3   s   &r   urEnvelope.ur        

DJJ''r   c                2    V P                   V P                  3# )z!Return the lower-left coordinate.)r$   r&   r3   s   &r   llEnvelope.ll   rO   r   c                ^    V P                   V P                  V P                  V P                  3# )z)Return a tuple representing the envelope.)r$   r&   r%   r'   r3   s   &r   r   Envelope.tuple   s#     

DJJ

DJJ??r   c                    RV P                   : RV P                  : RV P                   : RV P                  : RV P                  : RV P                  : RV P                  : RV P                  : RV P                   : RV P                  : R2# )z4Return WKT representing a Polygon for this envelope.z	POLYGON(( ,z)))r$   r&   r'   r%   r3   s   &r   wktEnvelope.wkt   sT    
 JJJJJJJJJJJJJJJJJJJJ
 	
r   )r   N)r   r   r   r   r   r+   r/   r4   r    r<   propertyr$   r&   r%   r'   rM   rQ   r   rX   r   __classdictcell__)__classdict__s   @r   r   r   !   s     CBX,%.V` # # # # # # # # ( ( ( ( @ @ 
 
r   r   N)r   ctypesr   r   django.contrib.gis.gdal.errorr   r   r   r   r   r   <module>r_      s*    ' 7) l
 l
r   