
    g                     (    d Z ddlmZ ddlmZ ddZy)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           	         t        | t              rt        |       } nt        | t              rnt        d      t	        |       D ]z  \  }}t        d| j                  z         t        d|z         t        dt        |j                  j                     j                  z         t        dt        |      z         t        d|j                  z         |j                  j                  }t        d|dd	 d
|d	d        t        d|z         t        t!        t        |j"                         }d|z  }t	        |d|       D ]{  \  }}t        d|z         |j"                  D ]Y  }	||	   j$                  }
||	|
fz  }|j'                  |	      }|rt        |t              rd}nd}|||z  z  }n|dz  }t        |       [ } } y)z
    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                 x/var/www/python.vincentserveurtest.ovh/public_html/venv/lib/python3.12/site-packages/django/contrib/gis/utils/ogrinfo.pyogrinfor(      s    +s# -	K	,L
 	
 k*5 ;#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9JAw"Q&'!LL#H-77	)44kk(+!#s+"+")gm+Fi'Ff ) : +    N)
   )__doc__django.contrib.gis.gdalr   "django.contrib.gis.gdal.geometriesr   r(    r)   r'   <module>r/      s    / :*r)   