+
    S<Âjg0  ã                   ó¬   € R t ^ RIHtHtHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHtHt  ! R R	]4      t ! R
 R]
4      t ! R R]
4      tR# )a6  
The Spatial Reference class, represents OGR Spatial Reference objects.

Example:
>>> from django.contrib.gis.gdal import SpatialReference
>>> srs = SpatialReference('WGS84')
>>> print(srs)
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.257223563,
            AUTHORITY["EPSG","7030"]],
        TOWGS84[0,0,0,0,0,0,0],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.01745329251994328,
        AUTHORITY["EPSG","9122"]],
    AUTHORITY["EPSG","4326"]]
>>> print(srs.proj)
+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
>>> print(srs.ellipsoid)
(6378137.0, 6356752.3142451793, 298.25722356300003)
>>> print(srs.projected, srs.geographic)
False True
>>> srs.import_epsg(32140)
>>> print(srs.name)
NAD83 / Texas South Central
)ÚbyrefÚc_char_pÚc_int)ÚIntEnum)ÚNoneType)ÚGDALBase)ÚSRSException)Úsrs)Úforce_bytesÚ	force_strc                   ó   € ] tR t^(t^ t^tRtR# )Ú	AxisOrder© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__ÚTRADITIONALÚ	AUTHORITYÚ__static_attributes__r   ó    Ú[/var/www/html/data_capital/venv/lib/python3.14/site-packages/django/contrib/gis/gdal/srs.pyr   r   (   s   † Ø€KØ„Ir   r   c                   óÜ  a € ] tR t^-t o Rt]P                  tR'R ltR t	R t
R(R ltR t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 4       t]R 4       t]R 4       t]R 4       t]R 4       t ]R 4       t!R t"R t#R t$R t%R  t&]R! 4       t']R(R" l4       t(]R# 4       t)]R$ 4       t*]R)R% l4       t+R&t,V t-R# )*ÚSpatialReferencezÙ
A wrapper for the OGRSpatialReference object. According to the GDAL web
site, the SpatialReference object "provide[s] services to represent
coordinate systems (projections and datums) and to transform between them."
Nc                óD  € \        V\        \        34      '       g   \        R4      hT;'       g    \        P                  V n        VR8X  d‚   \        P                  ! \        R4      4      V n	        V P                  V4       V P
                  \        P                  8X  d,   \        P                  ! V P                  V P
                  4       R# \        V\        4      '       d    \        V4      pRV,          pMK\        V\        4      '       d   RpM2\        WP                  4      '       d   TpRpM\        RV,          4      hVR8X  d   TpM!\        R4      p\        P                  ! V4      pV'       g   \!        R	V,          4      hWPn	        V P
                  \        P                  8X  d,   \        P                  ! V P                  V P
                  4       VR
8X  d   V P#                  V4       R# VR8X  d   V P%                  V4       R# R#   \         d     LØi ; i)zü
Create a GDAL OSR Spatial Reference object from the given input.
The input may be string of OGC Well Known Text (WKT), an integer
EPSG code, a PROJ string, and/or a projection "well known" shorthand
string (one of 'WGS84', 'WGS72', 'NAD27', 'NAD83').
z:SpatialReference.axis_order must be an AxisOrder instance.Úwktr   NzEPSG:%dÚepsgÚogrzInvalid SRS type "%s"z+Could not create spatial reference from: %sÚuser)Ú
isinstancer   r   Ú
ValueErrorr   Ú
axis_orderÚcapiÚnew_srsr   ÚptrÚ
import_wktÚset_axis_strategyÚstrÚintÚptr_typeÚ	TypeErrorr   Úimport_user_inputÚimport_epsg)ÚselfÚ	srs_inputÚsrs_typer!   Úsridr	   Úbufs   &&&&   r   Ú__init__ÚSpatialReference.__init__6   s®  € ô ˜*¤x´Ð&;×<Ò<ÜØLóð ð %×=Ð=¬	×(=Ñ(=ˆŒØ�uÔÜ—|’|¤H¨S£MÓ2ˆDŒHØ�O‰O˜IÔ&Ø�‰¤)×"7Ñ"7Ô7Ü×&Ò& t§x¡x°·±ÔAÙÜ˜	¤3×'Ò'ðô ˜9“~�Ø%¨Õ,‘	ô ˜	¤3×'Ò'à‰HÜ˜	§=¡=×1Ò1ØˆCØ‰HäÐ3°hÕ>Ó?Ð?à�uÔà‰Cô ˜3“-ˆCÜ—,’,˜sÓ#ˆC÷ ÜØ=À	ÕIóð ð ŒHà�?‰?œi×3Ñ3Ô3Ü×"Ò" 4§8¡8¨T¯_©_Ô=à�vÔØ×"Ñ" 9Ö-Ø˜ÔØ×Ñ˜YÖ'ñ  øôA ô Ùðús   Ã&H ÈHÈHc                óp   € \        V\        4      '       d   V P                  ! V!  # V P                  V4      # )a  
Return the value of the given string attribute node, None if the node
doesn't exist. Can also take a tuple as a parameter, (target, child),
where child is the index of the attribute in the WKT. For example:

>>> wkt = (
...     'GEOGCS["WGS 84",'
...     '  DATUM["WGS_1984, ... AUTHORITY["EPSG","4326"]'
...     ']'
... )
>>> srs = SpatialReference(wkt) # could also use 'WGS84', or 4326
>>> print(srs['GEOGCS'])
WGS 84
>>> print(srs['DATUM'])
WGS_1984
>>> print(srs['AUTHORITY'])
EPSG
>>> print(srs['AUTHORITY', 1]) # The authority value
4326
>>> print(srs['TOWGS84', 4]) # the fourth value in this wkt
0
>>> # For the units authority, have to use the pipe symbol.
>>> print(srs['UNIT|AUTHORITY'])
EPSG
>>> print(srs['UNIT|AUTHORITY', 1]) # The authority value for the units
9122
)r   ÚtupleÚ
attr_value©r-   Útargets   &&r   Ú__getitem__ÚSpatialReference.__getitem__q   s/   € ô8 �fœe×$Ò$Ø—?’? FÑ+Ð+à—?‘? 6Ó*Ð*r   c                ó   € V P                   # )zUse 'pretty' WKT.)Ú
pretty_wkt©r-   s   &r   Ú__str__ÚSpatialReference.__str__’   s   € à�‰Ðr   c                ó¼   € \        V\        4      '       d   \        V\        4      '       g   \        h\        P
                  ! V P                  \        V4      V4      # )z‚
The attribute value for the given target node (e.g. 'PROJCS'). The
index keyword specifies an index of the child node to return.
)r   r'   r(   r*   r"   Úget_attr_valuer$   r
   )r-   r8   Úindexs   &&&r   r6   ÚSpatialReference.attr_value—   s@   € ô
 ˜&¤#×&Ò&¬j¸Ä×.DÒ.DÜˆOÜ×"Ò" 4§8¡8¬[¸Ó-@À%ÓHÐHr   c                ój   € \         P                  ! V P                  Vf   V4      # \        V4      4      # )z;Return the authority name for the given string target node.)r"   Úget_auth_namer$   r
   r7   s   &&r   Ú	auth_nameÚSpatialReference.auth_name    ó4   € ä×!Ò!Ø�H‰H ¢�fó
ð 	
Ü4?ÀÓ4Gó
ð 	
r   c                ój   € \         P                  ! V P                  Vf   V4      # \        V4      4      # )z;Return the authority code for the given string target node.)r"   Úget_auth_coder$   r
   r7   s   &&r   Ú	auth_codeÚSpatialReference.auth_code¦   rH   r   c                ól   € \        \        P                  ! V P                  4      V P                  R7      # )z/Return a clone of this SpatialReference object.)r!   )r   r"   Ú	clone_srsr$   r!   r=   s   &r   ÚcloneÚSpatialReference.clone¬   s    € ä¤§¢¨t¯x©xÓ 8ÀTÇ_Á_ÔUÐUr   c                óF   € \         P                  ! V P                  4       R# )z7Morph this SpatialReference from ESRI's format to EPSG.N)r"   Úmorph_from_esrir$   r=   s   &r   Ú	from_esriÚSpatialReference.from_esri°   s   € ä×Ò˜TŸX™XÖ&r   c                óF   € \         P                  ! V P                  4       R# )z‚
This method inspects the WKT of this SpatialReference, and will
add EPSG authority nodes where an EPSG identifier is applicable.
N)r"   Úidentify_epsgr$   r=   s   &r   rV   ÚSpatialReference.identify_epsg´   s   € ô
 	×Ò˜4Ÿ8™8Ö$r   c                óF   € \         P                  ! V P                  4       R# )z-Morph this SpatialReference to ESRI's format.N)r"   Úmorph_to_esrir$   r=   s   &r   Úto_esriÚSpatialReference.to_esri»   s   € ä×Ò˜4Ÿ8™8Ö$r   c                óF   € \         P                  ! V P                  4       R# )z5Check to see if the given spatial reference is valid.N)r"   Úsrs_validater$   r=   s   &r   ÚvalidateÚSpatialReference.validate¿   s   € ä×Ò˜$Ÿ(™(Ö#r   c                óØ   € V P                   '       d   V P                  R4      # V P                  '       d   V P                  R4      # V P                  '       d   V P                  R4      # R# )z*Return the name of this Spatial Reference.ÚPROJCSÚGEOGCSÚLOCAL_CSN)Ú	projectedr6   Ú
geographicÚlocalr=   s   &r   ÚnameÚSpatialReference.nameÄ   sO   € ð �>�>ˆ>Ø—?‘? 8Ó,Ð,Ø�_�_ˆ_Ø—?‘? 8Ó,Ð,Ø�Z�ZˆZØ—?‘? :Ó.Ð.ár   c                ój   €  \        V P                  RR7      4      #   \        \        3 d     R# i ; i)z=Return the SRID of top-level authority, or None if undefined.N)r8   )r(   rK   r*   r    r=   s   &r   r0   ÚSpatialReference.sridÐ   s4   € ð	Ü�t—~‘~¨T�~Ó2Ó3Ð3øÜœ:Ð&ô 	Úð	ús   ‚ �2±2c                ón   € \         P                  ! V P                  \        \	        4       4      4      w  rV# )z$Return the name of the linear units.©r"   Úlinear_unitsr$   r   r   ©r-   Úunitsrg   s   &  r   Úlinear_nameÚSpatialReference.linear_nameÙ   s(   € ô ×'Ò'¨¯©´%¼»
Ó2CÓD‰ˆØˆr   c                ón   € \         P                  ! V P                  \        \	        4       4      4      w  rV# )z%Return the value of the linear units.rl   rn   s   &  r   rm   ÚSpatialReference.linear_unitsß   s(   € ô ×'Ò'¨¯©´%¼»
Ó2CÓD‰ˆØˆr   c                ón   € \         P                  ! V P                  \        \	        4       4      4      w  rV# )z%Return the name of the angular units.©r"   Úangular_unitsr$   r   r   rn   s   &  r   Úangular_nameÚSpatialReference.angular_nameå   s(   € ô ×(Ò(¨¯©´5¼»Ó3DÓE‰ˆØˆr   c                ón   € \         P                  ! V P                  \        \	        4       4      4      w  rV# )z&Return the value of the angular units.ru   rn   s   &  r   rv   ÚSpatialReference.angular_unitsë   s(   € ô ×(Ò(¨¯©´5¼»Ó3DÓE‰ˆØˆr   c                ój  € RRr!V P                   '       g   V P                  '       d6   \        P                  ! V P                  \        \        4       4      4      w  rMFV P                  '       d5   \        P                  ! V P                  \        \        4       4      4      w  rVe   \        V4      pW3# )z€
Return a 2-tuple of the units value and the units name. Automatically
determine whether to return the linear or angular units.
N)
rd   rf   r"   rm   r$   r   r   re   rv   r   rn   s   &  r   ro   ÚSpatialReference.unitsñ   s|   € ð ˜DˆtØ�>�>ˆ>˜TŸZŸZ˜ZÜ×+Ò+¨D¯H©H´e¼H»JÓ6GÓH‰KˆE�4Ø�_�_ˆ_Ü×,Ò,¨T¯X©X´u¼X»ZÓ7HÓI‰KˆEØÒÜ˜T“?ˆDØˆ}Ðr   c                óH   € V P                   V P                  V P                  3# )zg
Return a tuple of the ellipsoid parameters:
 (semimajor axis, semiminor axis, and inverse flattening)
)Ú
semi_majorÚ
semi_minorÚinverse_flatteningr=   s   &r   Ú	ellipsoidÚSpatialReference.ellipsoid  s   € ð —‘ §¡°$×2IÑ2IÐJÐJr   c                óf   € \         P                  ! V P                  \        \	        4       4      4      # )z6Return the Semi Major Axis for this Spatial Reference.)r"   r~   r$   r   r   r=   s   &r   r~   ÚSpatialReference.semi_major	  ó   € ô �Š˜tŸx™x¬¬u«w«Ó8Ð8r   c                óf   € \         P                  ! V P                  \        \	        4       4      4      # )z6Return the Semi Minor Axis for this Spatial Reference.)r"   r   r$   r   r   r=   s   &r   r   ÚSpatialReference.semi_minor  r…   r   c                óf   € \         P                  ! V P                  \        \	        4       4      4      # )z9Return the Inverse Flattening for this Spatial Reference.)r"   Úinvflatteningr$   r   r   r=   s   &r   r€   Ú#SpatialReference.inverse_flattening  s!   € ô ×!Ò! $§(¡(¬E´%³'«NÓ;Ð;r   c                óT   € \        \        P                  ! V P                  4      4      # )zL
Return True if this SpatialReference is geographic
 (root node is GEOGCS).
)Úboolr"   Úisgeographicr$   r=   s   &r   re   ÚSpatialReference.geographic  s   € ô ”D×%Ò% d§h¡hÓ/Ó0Ð0r   c                óT   € \        \        P                  ! V P                  4      4      # )zH
Return True if this SpatialReference is local (root node is LOCAL_CS).
)rŒ   r"   Úislocalr$   r=   s   &r   rf   ÚSpatialReference.local!  s   € ô
 ”D—L’L §¡Ó*Ó+Ð+r   c                óT   € \        \        P                  ! V P                  4      4      # )z_
Return True if this SpatialReference is a projected coordinate system
 (root node is PROJCS).
)rŒ   r"   Úisprojectedr$   r=   s   &r   rd   ÚSpatialReference.projected(  s   € ô ”D×$Ò$ T§X¡XÓ.Ó/Ð/r   c                óH   € \         P                  ! V P                  V4       R# )z=Import the Spatial Reference from the EPSG code (an integer).N)r"   Ú	from_epsgr$   )r-   r   s   &&r   r,   ÚSpatialReference.import_epsg1  ó   € ä�Š�t—x‘x Ö&r   c                óH   € \         P                  ! V P                  V4       R# )z0Import the Spatial Reference from a PROJ string.N)r"   Ú	from_projr$   )r-   Úprojs   &&r   Úimport_projÚSpatialReference.import_proj5  r˜   r   c                óZ   € \         P                  ! V P                  \        V4      4       R# )z>Import the Spatial Reference from the given user input string.N)r"   Úfrom_user_inputr$   r
   )r-   Ú
user_inputs   &&r   r+   Ú"SpatialReference.import_user_input9  s   € ä×Ò˜TŸX™X¤{°:Ó'>Ö?r   c           
     ó~   € \         P                  ! V P                  \        \	        \        V4      4      4      4       R# )z2Import the Spatial Reference from OGC WKT (string)N)r"   Úfrom_wktr$   r   r   r
   )r-   r   s   &&r   r%   ÚSpatialReference.import_wkt=  s#   € ä�Š�d—h‘h¤¤h¬{¸3Ó/?Ó&@Ó AÖBr   c                óH   € \         P                  ! V P                  V4       R# )z0Import the Spatial Reference from an XML string.N)r"   Úfrom_xmlr$   )r-   Úxmls   &&r   Ú
import_xmlÚSpatialReference.import_xmlA  s   € ä�Š�d—h‘h Ö$r   c                óf   € \         P                  ! V P                  \        \	        4       4      4      # )z8Return the WKT representation of this Spatial Reference.)r"   Úto_wktr$   r   r   r=   s   &r   r   ÚSpatialReference.wktF  s    € ô �{Š{˜4Ÿ8™8¤U¬8«:Ó%6Ó7Ð7r   c                óh   € \         P                  ! V P                  \        \	        4       4      V4      # )z.Return the 'pretty' representation of the WKT.)r"   Úto_pretty_wktr$   r   r   )r-   Úsimplifys   &&r   r<   ÚSpatialReference.pretty_wktK  s$   € ô ×!Ò! $§(¡(¬E´(³*Ó,=¸xÓHÐHr   c                óf   € \         P                  ! V P                  \        \	        4       4      4      # )z:Return the PROJ representation for this Spatial Reference.)r"   Úto_projr$   r   r   r=   s   &r   r›   ÚSpatialReference.projP  s    € ô �|Š|˜DŸH™H¤e¬H«JÓ&7Ó8Ð8r   c                ó   € V P                   # )zAlias for proj().)r›   r=   s   &r   Úproj4ÚSpatialReference.proj4U  s   € ð �y‰yÐr   c                óz   € \         P                  ! V P                  \        \	        4       4      \        V4      4      # )z8Return the XML representation of this Spatial Reference.)r"   Úto_xmlr$   r   r   r
   )r-   Údialects   &&r   r§   ÚSpatialReference.xmlZ  s'   € ô �{Š{˜4Ÿ8™8¤U¬8«:Ó%6¼ÀGÓ8LÓMÐMr   )r!   r$   )Ú r   N)é    )r»   ).r   r   r   r   Ú__doc__r"   Úrelease_srsÚ
destructorr2   r9   r>   r6   rF   rK   rO   rS   rV   rZ   r^   Úpropertyrg   r0   rp   rm   rw   rv   ro   r�   r~   r   r€   re   rf   rd   r,   rœ   r+   r%   r¨   r   r<   r›   rµ   r§   r   Ú__classdictcell__©Ú__classdict__s   @r   r   r   -   sï  ø‡ € ñð ×!Ñ!€Jô9(òv+òBô
Iò
ò
òVò'ò%ò%ò$ð
 ñ	ó ð	ð ñó ðð ñó ðð
 ñó ðð
 ñó ðð
 ñó ðð
 ñó ðð ñKó ðKð ñ9ó ð9ð ñ9ó ð9ð ñ<ó ð<ð
 ñ1ó ð1ð ñ,ó ð,ð ñ0ó ð0ò'ò'ò@òCò%ð
 ñ8ó ð8ð óIó ðIð ñ9ó ð9ð ñó ðð óNó öNr   r   c                   óH   a € ] tR tRt o Rt]P                  tR tR t	Rt
V tR# )ÚCoordTransformi`  z,The coordinate system transformation object.c                ó  € \        V\        4      '       d   \        V\        4      '       g   \        R4      h\        P                  ! VP
                  VP
                  4      V n        VP                  V n        VP                  V n	        R# )z;Initialize on a source and target SpatialReference objects.z2source and target must be of type SpatialReferenceN)
r   r   r*   r"   Únew_ctÚ_ptrr$   rg   Ú
_srs1_nameÚ
_srs2_name)r-   Úsourcer8   s   &&&r   r2   ÚCoordTransform.__init__e  s`   € ä˜&Ô"2×3Ò3¼:ØÔ$÷<
ò <
ô ÐPÓQÐQÜ—;’;˜vŸ{™{¨F¯K©KÓ8ˆŒØ Ÿ+™+ˆŒØ Ÿ+™+ˆŽr   c                ó@   € R V P                   : RV P                  : R2# )zTransform from "z" to "Ú")rÉ   rÊ   r=   s   &r   r>   ÚCoordTransform.__str__o  s   � Ø04·´ÀÇÄÐQÐQr   )rÉ   rÊ   r$   N)r   r   r   r   r½   r"   Ú
destroy_ctr¿   r2   r>   r   rÁ   rÂ   s   @r   rÅ   rÅ   `  s"   ø‡ € Ù2à—‘€Jò&÷Rð Rr   rÅ   N)r½   Úctypesr   r   r   Úenumr   Útypesr   Údjango.contrib.gis.gdal.baser   Údjango.contrib.gis.gdal.errorr   Ú"django.contrib.gis.gdal.prototypesr	   r"   Údjango.utils.encodingr
   r   r   r   rÅ   r   r   r   Ú<module>rØ      sO   ðñ÷: *Ñ )Ý Ý å 1Ý 6Ý :ß 8ô�ô ô
pN�xô pNôf	R�Xö Rr   