| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/gis/utils/__pycache__/ |
Upload File : |
�
�|�e� � �* � d Z ddlmZ ddlmZ dd�ZdS )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 � � rt | � � } n%t | t � � rnt d� � �t | � � D �]�\ }}t d| j z � � t d|z � � t dt |j j j
z � � t dt |� � z � � t d|j z � � |j
j }t d|dd � �d
|d d� ��� � t d|z � � t t! t |j � � � }d
|z }t |d|� � � D ]�\ }}t d|z � � |j D ]d} || j }
|| |
fz }|� | � � }|r#t |t � � rd}
nd}
||
|z z
}n|dz
}t |� � �e�����dS )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.zdata 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 �B/usr/lib/python3/dist-packages/django/contrib/gis/utils/ogrinfo.py�ogrinfor) s! � � �+�s�#�#� Z� ��-�-��� �K�� ,� ,� Z���X�Y�Y�Y��k�*�*� � ���5�
� �;�#3�3�4�4�4�
�o��!�"�"�"�
� �;�u��/B�#C�#L�L�M�M�M�
� �3�u�:�:�-�.�.�.�
� �5�9�,�-�-�-��\�'�
�
���A�a�C����*�Q�q�S�/�/�J�K�K�K�
�5��D�E�E�E��S��e�l�+�+�,���e�#��#�E�-�<�-�$8�9�9� � �J�A�w��"�Q�&�'�'�'�!�L�
�
��#�H�-�7� ���)�4�4���k�k�(�+�+��� (�!�#�s�+�+� *�"+���")���g��m�+�F�F��i�'�F��f�
�
�
�
�
� �� � N)r )�__doc__�django.contrib.gis.gdalr �"django.contrib.gis.gdal.geometriesr r) � r* r( �<module>r/ sS ��� � /� .� .� .� .� .� :� :� :� :� :� :�(� (� (� (� (� (r*