+
    Tjn                     2    ^ RI Ht ^ RIHt  ! R R4      tR# )    )gdal)cached_propertyc                     a  ] tR t^t o 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
 4       t]R 4       t]R 4       t]R 4       t]R 4       t]R 4       t]RR l4       tR tRtV tR# )SpatialRefSysMixinzr
The SpatialRefSysMixin is a class used by the database-dependent
SpatialRefSys objects to reduce redundant code.
c           
     D    \         P                  ! V P                  4      #   \         d   pTp Rp?MRp?ii ; i \         P                  ! T P                  4      #   \         d   pTp Rp?MRp?ii ; i\        RT P                   RT RT P                   RT 24      h)z(
Return a GDAL SpatialReference object.
Nz3Could not get OSR SpatialReference.
Error for WKT 'z': z
Error for PROJ.4 ')r   SpatialReferencewkt	Exception	proj4text)selfe	wkt_errorproj4_errors   &   _/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/db/backends/base/models.pysrsSpatialRefSysMixin.srs   s    
	((22 	I		((88 	K	 "hhZs9+ 6!!% 0K=B
 	
s'   " 949A A4(A//A4c                .    V P                   P                  # )zg
Return a tuple of the ellipsoid parameters:
(semimajor axis, semiminor axis, and inverse flattening).
)r   	ellipsoidr   s   &r   r   SpatialRefSysMixin.ellipsoid    s     xx!!!    c                .    V P                   P                  # )zReturn the projection name.)r   namer   s   &r   r   SpatialRefSysMixin.name(   s     xx}}r   c                (    V P                   R,          # )z4Return the spheroid name for this spatial reference.spheroidr   r   s   &r   r   SpatialRefSysMixin.spheroid-   s     xx
##r   c                (    V P                   R,          # )z,Return the datum for this spatial reference.datumr   r   s   &r   r    SpatialRefSysMixin.datum2   s     xx  r   c                .    V P                   P                  # )z$Is this Spatial Reference projected?)r   	projectedr   s   &r   r#   SpatialRefSysMixin.projected7   s     xx!!!r   c                .    V P                   P                  # )z Is this Spatial Reference local?)r   localr   s   &r   r&   SpatialRefSysMixin.local<   s     xx~~r   c                .    V P                   P                  # )z%Is this Spatial Reference geographic?)r   
geographicr   s   &r   r)   SpatialRefSysMixin.geographicA   s     xx"""r   c                .    V P                   P                  # )zReturn the linear units name.)r   linear_namer   s   &r   r,   SpatialRefSysMixin.linear_nameF   s     xx###r   c                .    V P                   P                  # )zReturn the linear units.)r   linear_unitsr   s   &r   r/   SpatialRefSysMixin.linear_unitsK        xx$$$r   c                .    V P                   P                  # )z%Return the name of the angular units.)r   angular_namer   s   &r   r3   SpatialRefSysMixin.angular_nameP   r1   r   c                .    V P                   P                  # )zReturn the angular units.)r   angular_unitsr   s   &r   r6    SpatialRefSysMixin.angular_unitsU   s     xx%%%r   c                    V P                   '       g   V P                  '       d   V P                  V P                  3# V P                  '       d   V P
                  V P                  3# R# )z)Return a tuple of the units and the name.)NN)r#   r&   r/   r,   r)   r6   r3   r   s   &r   unitsSpatialRefSysMixin.unitsZ   sR     >>>TZZZ%%t'7'788___&&(9(9::r   c                B    \         P                  ! V4      P                  # )zg
Return a tuple of (unit_value, unit_name) for the given WKT without
using any of the database fields.
)r   r   r9   )clsr	   s   &&r   	get_unitsSpatialRefSysMixin.get_unitsd   s     $$S)///r   c                    \         P                  ! V4      pVP                  pVR,          pV'       g   WT3# \        V4      ^8X  d   V^ ,          V^,          rvMVw  rgRV: RV: RV: R2# )zt
Class method used by GeometryField on initialization to
retrieve the `SPHEROID[..]` parameters from the given WKT.
r   z
SPHEROID["z",,])r   r   r   len)r<   r	   stringr   sphere_paramssphere_nameradius
flattenings   &&&     r   get_spheroidSpatialRefSysMixin.get_spheroidl   sh     ##C(*o-- =!Q&%21%5}Q7G
%2"-8&*MMr   c                ,    \        V P                  4      # )z7
Return the string representation, a 'pretty' OGC WKT.
)strr   r   s   &r   __str__SpatialRefSysMixin.__str__   s     488}r    N)T)__name__
__module____qualname____firstlineno____doc__r   r   propertyr   r   r   r    r#   r&   r)   r,   r/   r3   r6   r9   classmethodr=   rH   rL   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sB    
 
 
( " "   $ $ ! ! " "   # # $ $ % % % % & &     0 0 N N& r   r   N)django.contrib.gisr   django.utils.functionalr   r   rN   r   r   <module>r[      s    # 3 r   