https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/contrib/gis/gdal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/contrib/gis/gdal/envelope.pyc
�
r�\c@s\dZddlmZmZddlmZdefd��YZdefd��YZdS(	s�
 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----------+
i����(t	Structuretc_double(tOGRExceptiontOGREnvelopecBs8eZdZdefdefdefdefgZRS(s'Represents the OGREnvelope C Structure.tMinXtMaxXtMinYtMaxY(t__name__t
__module__t__doc__Rt_fields_(((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyRs
			tEnvelopecBs�eZdZd�Zd�Zd�Zd�Zd�Zed��Z	ed��Z
ed��Zed	��Zed
��Z
ed��Zed��Zed
��ZRS(s�
    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.
    cGsOt|�dkr�t|dt�r5|d|_q	t|dttf�r�t|d�dkr�tdt|d���q�|j|d�q	tdt	t
|d����nQt|�dkr�|jg|D]}t|�^q��ntdt|���|j|j
kr*td��n|j|jkrKtd��nd	S(
s�
        The initialization function may take an OGREnvelope structure, 4-element
        tuple or list, or 4 individual arguments.
        iiis(Incorrect number of tuple elements (%d).sIncorrect type of argument: %ss#Incorrect number (%d) of arguments.sEnvelope minimum X > maximum X.sEnvelope minimum Y > maximum Y.N(tlent
isinstanceRt	_envelopettupletlistRt_from_sequencet	TypeErrortstrttypetfloattmin_xtmax_xtmin_ytmax_y(tselftargsta((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyt__init__"s#)cCs�t|t�rU|j|jkoT|j|jkoT|j|jkoT|j|jkSt|t�r�t|�dkr�|j|dko�|j|dko�|j|dko�|j|dkStd��dS(sy
        Returns True if the envelopes are equivalent; can compare against
        other Envelopes and 4-tuples.
        iiiiis4Equivalence testing only works with other Envelopes.N(	RRRRRRRR
R(Rtother((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyt__eq__As$"!&$cCs
t|j�S(s-Returns a string representation of the tuple.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyt__str__OscCsPt�|_|d|j_|d|j_|d|j_|d|j_dS(sAInitializes the C OGR Envelope structure from the given sequence.iiiiN(RRRRRR(Rtseq((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyRSs
cGsdt|�dkr�t|dt�r9|j|dj�St|dd�r�t|dd�r�|j|dj|dj|dj|dj�St|dttf�r�t|d�dkr�|j|dd|dd|dd|ddf�St|d�dkr�|d\}}}}||j	j
krF||j	_
n||j	jkrg||j	_n||j	jkr�||j	_n||j	j
kr�||j	_
q�q�tdt|d���q`tdtt|d����ntt|�dkr'|j|d|d|d|df�St|�dkrF|j|�Std	t|d���d
S(s� 
        Modifies the envelope to expand to include the boundaries of 
        the passed-in 2-tuple (a point), 4-tuple (an extent) or 
        envelope. 
        iitxtyiis(Incorrect number of tuple elements (%d).sIncorrect type of argument: %ss#Incorrect number (%d) of arguments.N(R
RRtexpand_to_includeRthasattrR#R$RRRRRRRRRR(RRtminxtminytmaxxtmaxy((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyR%[s2
&29#)
cCs
|jjS(s.Returns the value of the minimum X coordinate.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyR�scCs
|jjS(s.Returns the value of the minimum Y coordinate.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyR�scCs
|jjS(s.Returns the value of the maximum X coordinate.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyR�scCs
|jjS(s.Returns the value of the maximum Y coordinate.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyR�scCs|j|jfS(s#Returns the upper-right coordinate.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pytur�scCs|j|jfS(s"Returns the lower-left coordinate.(RR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pytll�scCs|j|j|j|jfS(s*Returns a tuple representing the envelope.(RRRR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyR�scCsDd|j|j|j|j|j|j|j|j|j|jf
S(s5Returns WKT representing a Polygon for this envelope.s(POLYGON((%s %s,%s %s,%s %s,%s %s,%s %s))(RRRR(R((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pytwkt�s(RR	R
RR R!RR%tpropertyRRRRR+R,RR-(((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyRs					*N(	R
tctypesRRtdjango.contrib.gis.gdal.errorRRtobjectR(((sB/tmp/pip-install-XxeQeY/django/django/contrib/gis/gdal/envelope.pyt<module>s

https://t.me/AnonymousX5 - 2025