
    h                     *    S r SSKJr  SSKJr  SS jrg)z
This module includes some utility functions for inspecting the layout
of a GDAL data source -- the functionality is analogous to the output
produced by the `ogrinfo` utility.
    )
DataSource)GEO_CLASSESc           	         [        U [        5      (       a  [        U 5      n O![        U [        5      (       a  O[        S5      e[	        U 5       GH  u  p#[        SU R                  -  5        [        SU-  5        [        S[        UR                  R                     R                  -  5        [        S[        U5      -  5        [        SUR                  -  5        UR                  R                  n[        SUSS	 < S
US	S < 35        [        SU-  5        [        [!        [        UR"                  5      6 nSU-  n[	        USU 5       H  u  px[        SU-  5        UR"                   Ha  n	X   R$                  n
XiU
4-  nUR'                  U	5      nU(       a"  [        U[        5      (       a  SnOSnXU-  -  nOUS-  n[        U5        Mc     M     GM     g)zw
Walk the available layers in the supplied `data_source`, displaying
the fields for the first `num_features` features.
z>Data source parameter must be a string or a DataSource object.zdata source : %sz==== layer %sz  shape type: %sz  # features: %sz         srs: %sz      extent: r      z -    z%Displaying the first %s features ====z %%%ss: %%sNz=== Feature %sz ("%s")z (%s)z (None))
isinstancestrr   	Exception	enumerateprintnamer   	geom_typenum__name__lensrsextenttuplemaxmapfields	type_nameget)data_sourcenum_featuresilayer
extent_tupwidthfmtjfeaturefld_namer   outputvalval_fmts                 R/var/www/html/env/lib/python3.13/site-packages/django/contrib/gis/utils/ogrinfo.pyogrinfor(      s    +s## -	K	,	,L
 	
 k* ;#3#334o!" ;u/B/B#C#L#LLM 3u:-. 599,-\\''
Aa*Qq/JK5DESell+,e##E-<$89JA"Q&'!LL#-77	)44kk(+!#s++"+")m+Fi'Ff ) : +    N)
   )__doc__django.contrib.gis.gdalr   "django.contrib.gis.gdal.geometriesr   r(    r)   r'   <module>r/      s    / :*r)   