+
    TjJ                        ^ RI t ^ RIt^ RIt^ RIHtHtHtHt ^ RIH	t	 ^ RI
Ht ^ RIHt ] P                  ! R4      t ^ RIHt ]P$                  t]'       d   RtME]P0                  R8X  d   . ROtM/]P0                  R	8X  d   . ROtM]! R
]P0                  ,          4      h]'       d   ] F  t]	! ]4      t]f   K   M	  ]f   ]! RRP5                  ]4      ,          4      h]! ]4      t]P0                  R8X  d   ^ RIHt ]! ]4      tR t]! R4      t].]n         ]]n!        R t"R t#R t$]$! 4       t%]! R]]]4      t&R t']&! ]'4      t'R t(](! R]&.]&4      t)])! ]'4       R#   ]]]]3 d    Rt EL i ; i)    N)CDLL	CFUNCTYPEc_char_pc_int)find_library)GDALException)ImproperlyConfiguredzdjango.contrib.gis)settingsntposixzGDAL is unsupported on OS "%s".zzCould not find the GDAL library (tried "%s"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.z", ")WinDLLc                `    \         P                  R8X  d   \        V ,          # \        V ,          # )zR
Return the correct STDCALL function for certain OSR routines on Win32
platforms.
r   )osnamelwingdallgdal)funcs   &T/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/gdal/libgdal.pystd_callr   U   s#    
 
ww$~T{    GDALVersionInfoc                     \        R4      # )z0Return only the GDAL version number information.s   RELEASE_NAME_version_info r   r   gdal_versionr   h   s    ))r   c                     \        R4      # )z)Return the full GDAL version information.r   r   r   r   r   gdal_full_versionr   m   s    r   c                      \        4       p \        P                  ! R V 4      pV'       g   \        RV ,          4      hVP	                  4       w  r#p\        V4      \        V4      T;'       d    \        V4      3# )s7   ^(?P<major>\d+)\.(?P<minor>\d+)(?:\.(?P<subminor>\d+))?z(Could not parse GDAL version string "%s")r   rematchr   groupsint)vermmajorminorsubminors        r   gdal_version_infor)   r   s_    
.C
LcRAFLMMXXZE(JE
H$>$>X??r   c                 2    \         P                  R W4       R# )zGDAL_ERROR %d: %sN)loggererror)error_classerror_numbermessages   &&&r   err_handlerr0      s    
LL$l<r   c                 4    \        V 4      pWn        W#n        V# )N)r   argtypesrestype)r   argsr3   r   s   &&& r   functionr5      s    D>DMLKr   CPLSetErrorHandler)gdal311gdal310gdal309gdal308gdal307gdal306gdal305gdal304gdal303gdal302gdal301)gdalGDALz
gdal3.11.0z
gdal3.10.0z	gdal3.9.0z	gdal3.8.0z	gdal3.7.0z	gdal3.6.0z	gdal3.5.0z	gdal3.4.0z	gdal3.3.0z	gdal3.2.0z	gdal3.1.0)*loggingr   r    ctypesr   r   r   r   ctypes.utilr   django.contrib.gis.gdal.errorr   django.core.exceptionsr	   	getLoggerr+   django.confr
   GDAL_LIBRARY_PATHlib_pathAttributeErrorImportErrorOSError	lib_namesr   lib_namejoinr   r   r   r   r   r2   r3   r   r   r)   GDAL_VERSIONCPLErrorHandlerr0   r5   set_error_handlerr   r   r   <module>rV      s    	 	 3 3 $ 7 7			/	0$))H IWW_I WWI  @277J
KK ) 
 
	D
++i
 	!  	X 77d?hH *+"   *

@ !" D%9= k* 1O3DoV  +  	%97C Hs   E   E10E1