
    Dvg                     *    d Z ddlmZ ddlmZ ddZdS )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_CLASSES
   c           	         t          | t                    rt          |           } n%t          | t                    rnt          d          t	          |           D ]\  }}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 ]d}	||	         j        }
||	|
fz  }|                    |	          }|r#t          |t                    rd}nd}|||z  z  }n|dz  }t          |           edS )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                 ]/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/django/contrib/gis/utils/ogrinfo.pyogrinfor)      s'    +s## 
 --	K	,	, 
L
 
 	
 k**  5 ;#33444o!""" ;u/B#C#LLMMM 3u::-... 59,---\'
AaC*QqS//JKKK5DEEESel++,e##E-<-$899 	 	JAw"Q&'''!L  #H-7	)44kk(++ (!#s++ *"+")gm+FFi'Ff	     N)r   )__doc__django.contrib.gis.gdalr   "django.contrib.gis.gdal.geometriesr   r)    r*   r(   <module>r/      sS     / . . . . . : : : : : :* * * * * *r*   