Ë
    ¹ûàg©  ã                   ó$   — d dl mZ  G d„ d«      Zy)é    )Úgdalc                   ó  — e Zd ZdZed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Z	ed„ «       Z
ed„ «       Zed	„ «       Zed
„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zed„ «       Zedd„«       Zd„ Zy)ÚSpatialRefSysMixinz~
    The SpatialRefSysMixin is a class used by the database-dependent
    SpatialRefSys objects to reduce redundant code.
    c                 ó¨  — t        | d«      r| j                  j                  «       S 	 t        j                  | j
                  «      | _        | j                  S # t        $ r}|}Y d}~nd}~ww xY w	 t        j                  | j                  «      | _        | j                  S # t        $ r}|}Y d}~nd}~ww xY wt        d| j
                  ›d|›�«      ‚)z8
        Return a GDAL SpatialReference object.
        Ú_srsNz-Could not get OSR SpatialReference from WKT: z
Error:
)	Úhasattrr   Úcloner   ÚSpatialReferenceÚwktÚsrsÚ	ExceptionÚ	proj4text)ÚselfÚeÚmsgs      úh/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/django/contrib/gis/db/backends/base/models.pyr   zSpatialRefSysMixin.srs
   s®   € ô �4˜Ô à—9‘9—?‘?Ó$Ð$ð
Ü ×1Ñ1°$·(±(Ó;�”	Ø—x‘x�øÜò Ø•ûðúðÜ ×1Ñ1°$·.±.ÓA�”	Ø—x‘x�øÜò Ø•ûðúõ à—8“8™Sð"óð s/   ¨/A Á	A-Á!A(Á(A-Á1/B! Â!	B6Â*B1Â1B6c                 ó.   — | j                   j                  S )z
        Return a tuple of the ellipsoid parameters:
        (semimajor axis, semiminor axis, and inverse flattening).
        )r   Ú	ellipsoid©r   s    r   r   zSpatialRefSysMixin.ellipsoid(   s   € ð �x‰x×!Ñ!Ð!ó    c                 ó.   — | j                   j                  S )zReturn the projection name.)r   Únamer   s    r   r   zSpatialRefSysMixin.name0   s   € ð �x‰x�}‰}Ðr   c                 ó    — | j                   d   S )z4Return the spheroid name for this spatial reference.Úspheroid©r   r   s    r   r   zSpatialRefSysMixin.spheroid5   s   € ð �x‰x˜
Ñ#Ð#r   c                 ó    — | j                   d   S )z,Return the datum for this spatial reference.Údatumr   r   s    r   r   zSpatialRefSysMixin.datum:   s   € ð �x‰x˜Ñ Ð r   c                 ó.   — | j                   j                  S )z$Is this Spatial Reference projected?)r   Ú	projectedr   s    r   r   zSpatialRefSysMixin.projected?   s   € ð �x‰x×!Ñ!Ð!r   c                 ó.   — | j                   j                  S )z Is this Spatial Reference local?)r   Úlocalr   s    r   r!   zSpatialRefSysMixin.localD   s   € ð �x‰x�~‰~Ðr   c                 ó.   — | j                   j                  S )z%Is this Spatial Reference geographic?)r   Ú
geographicr   s    r   r#   zSpatialRefSysMixin.geographicI   s   € ð �x‰x×"Ñ"Ð"r   c                 ó.   — | j                   j                  S )zReturn the linear units name.)r   Úlinear_namer   s    r   r%   zSpatialRefSysMixin.linear_nameN   s   € ð �x‰x×#Ñ#Ð#r   c                 ó.   — | j                   j                  S )zReturn the linear units.)r   Úlinear_unitsr   s    r   r'   zSpatialRefSysMixin.linear_unitsS   ó   € ð �x‰x×$Ñ$Ð$r   c                 ó.   — | j                   j                  S )z%Return the name of the angular units.)r   Úangular_namer   s    r   r*   zSpatialRefSysMixin.angular_nameX   r(   r   c                 ó.   — | j                   j                  S )zReturn the angular units.)r   Úangular_unitsr   s    r   r,   z SpatialRefSysMixin.angular_units]   s   € ð �x‰x×%Ñ%Ð%r   c                 ó¬   — | j                   s| j                  r| j                  | j                  fS | j                  r| j
                  | j                  fS y)z)Return a tuple of the units and the name.)NN)r   r!   r'   r%   r#   r,   r*   r   s    r   ÚunitszSpatialRefSysMixin.unitsb   sI   € ð �>Š>˜TŸZšZØ×%Ñ% t×'7Ñ'7Ð8Ð8Ø�_Š_Ø×&Ñ&¨×(9Ñ(9Ð:Ð:àr   c                 ó@   — t        j                  |«      j                  S )z
        Return a tuple of (unit_value, unit_name) for the given WKT without
        using any of the database fields.
        )r   r
   r.   )Úclsr   s     r   Ú	get_unitszSpatialRefSysMixin.get_unitsl   s   € ô ×$Ñ$ SÓ)×/Ñ/Ð/r   c                 ó®   — t        j                  |«      }|j                  }|d   }|s||fS t        |«      dk(  r|d   |d   }}n|\  }}d|›d|›d|›d�S )	zŒ
        Class method used by GeometryField on initialization to
        retrieve the `SPHEROID[..]` parameters from the given WKT.
        r   é   r   é   z
SPHEROID["z",ú,ú])r   r
   r   Úlen)r0   r   Ústringr   Úsphere_paramsÚsphere_nameÚradiusÚ
flattenings           r   Úget_spheroidzSpatialRefSysMixin.get_spheroidt   sn   € ô ×#Ñ# CÓ(ˆØŸ™ˆØ˜*‘oˆáØ Ð-Ð-ô �=Ó! QÒ&Ø%2°1Ñ%5°}ÀQÑ7G˜
‘à%2Ñ"�˜
øÚ-8º&Â*ÐMÐMr   c                 ó,   — t        | j                  «      S )zG
        Return the string representation, a 'pretty' OGC WKT.
        )Ústrr   r   s    r   Ú__str__zSpatialRefSysMixin.__str__ˆ   s   € ô �4—8‘8‹}Ðr   N)T)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   r   r   r!   r#   r%   r'   r*   r,   r.   Úclassmethodr1   r=   r@   © r   r   r   r      s:  „ ñð
 ñó ðð: ñ"ó ð"ð ñó ðð ñ$ó ð$ð ñ!ó ð!ð ñ"ó ð"ð ñó ðð ñ#ó ð#ð ñ$ó ð$ð ñ%ó ð%ð ñ%ó ð%ð ñ&ó ð&ð ñ ó ð ð ñ0ó ð0ð òNó ðNó&r   r   N)Údjango.contrib.gisr   r   rG   r   r   ú<module>rI      s   ðÝ #÷Hò Hr   