+
    Tj                     4   ^ RI HtHt ^ RIHtHtHt ^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt  ! R R]4      t ! R	 R
]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R ]4      t ! R! R"]4      t ! R# R$]4      t^ ]^]^]^]^]^]^]^]^]^	]^
]^]^]^]/t]P?                  4        U Uu/ uF  w  rWbK	  	  upp t R%# u upp i )&    )byrefc_int)datedatetimetime)GDALBase)GDALException)ds)	force_strc                      a  ] tR t^t o RtR tR tR tRR ltR t	R t
]R 4       t]R	 4       t]R
 4       t]R 4       t]R 4       t]R 4       t]R 4       tRtV tR# )FieldzD
Wrap an OGR Field. Needs to be instantiated from a Feature object.
c                    Wn         W n        \        P                  ! VP                  V4      pV'       g   \        R4      hW0n        \        V P                  ,          V n        R# )zY
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   &&& R/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/gdal/field.py__init__Field.__init__   sL     
 **488U; QRR 'tyy1    c                H    \        V P                  4      P                  4       # )z.Return the string representation of the Field.)strvaluestripr   s   &r   __str__Field.__str__%   s    4::$$&&r   c                    V P                   '       d6   \        P                  ! V P                  P                  V P
                  4      # R# )z/Retrieve the Field's value as a double (float).N)is_setr   get_field_as_doubler   r   r   r#   s   &r   	as_doubleField.as_double*   s:     {{{ $$TZZ^^T[[A	
 	
r   c                6   V'       dJ   V P                   '       d6   \        P                  ! V P                  P                  V P
                  4      # R# V P                   '       d6   \        P                  ! V P                  P                  V P
                  4      # R# )z)Retrieve the Field's value as an integer.N)r'   r   get_field_as_integer64r   r   r   get_field_as_integer)r   is_64s   &&r   as_intField.as_int2   su     ;;; ++DJJNNDKKH  ;;; ))$**..$++F r   c                    V P                   '       g   R# \        P                  ! V P                  P                  V P
                  4      p\        WP                  P                  RR7      # )z'Retrieve the Field's value as a string.NTencodingstrings_only)r'   r   get_field_as_stringr   r   r   r   r3   )r   strings   & r   	as_stringField.as_stringA   sC    {{{))$**..$++F***=*=DQQr   c                   V P                   '       g   R# \        ^4       Uu. uF  p\        4       NK  	  upw  r#rErgp\        P                  ! V P
                  P                  V P                  \        V4      \        V4      \        V4      \        V4      \        V4      \        V4      \        V4      4	      p	V	'       d   W#WEWgV3# \        R4      hu upi )z@Retrieve the Field's value as a tuple of date & time components.Nz:Unable to retrieve date & time information from the field.)
r'   ranger   r   get_field_as_datetimer   r   r   r   r	   )
r   iyymmddhhmnsstzstatuss
   &         r   as_datetimeField.as_datetimeH   s    {{{7<Qx%@x!egx%@"++JJNNKK"I"I"I"I"I"I"I

 BBB//L  &As   Cc                l    \         P                  ! V P                  P                  V P                  4      # )zCReturn True if the value of this field isn't null, False otherwise.)r   is_field_setr   r   r   r#   s   &r   r'   Field.is_set`   s#       ==r   c                    \         P                  ! V P                  4      p\        WP                  P
                  RR7      # )zReturn the name of this Field.Tr2   )r   get_field_namer   r   r   r3   )r   names   & r   rL   
Field.namee   s/     ""488,

(;(;$OOr   c                B    \         P                  ! V P                  4      # )z#Return the precision of this Field.)r   get_field_precisionr   r#   s   &r   	precisionField.precisionk   s     ''11r   c                B    \         P                  ! V P                  4      # )z"Return the OGR type of this Field.)r   get_field_typer   r#   s   &r   r   
Field.typep   s     ""488,,r   c                B    \         P                  ! V P                  4      # )z.Return the OGR field type name for this Field.)r   get_field_type_namer   r#   s   &r   	type_nameField.type_nameu   s     ''		22r   c                "    V P                  4       # )zReturn the value of this Field.)r7   r#   s   &r   r!   Field.valuez   s     ~~r   c                B    \         P                  ! V P                  4      # )zReturn the width of this Field.)r   get_field_widthr   r#   s   &r   widthField.width   s     ##DHH--r   )r   r   r   r   N)F)__name__
__module____qualname____firstlineno____doc__r   r$   r)   r/   r7   rE   propertyr'   rL   rP   r   rW   r!   r]   __static_attributes____classdictcell____classdict__s   @r   r   r      s     2$'

R0 > > P P
 2 2 - - 3 3    
 . .r   r   c                   D   a  ] tR t^t o Rt]R 4       t]R 4       tRtV t	R# )
OFTIntegerFc                8    V P                  V P                  4      # )z*Return an integer contained in this field.)r/   _bit64r#   s   &r   r!   OFTInteger.value   s     {{4;;''r   c                    ^ # )z
GDAL uses OFTReals to represent OFTIntegers in created
shapefiles -- forcing the type here since the underlying field
type may actually be OFTReal.
 r#   s   &r   r   OFTInteger.type   s     r   ro   N)
r_   r`   ra   rb   rl   rd   r!   r   re   rf   rg   s   @r   rj   rj      s0     F( (  r   rj   c                   0   a  ] tR t^t o ]R 4       tRtV tR# )OFTRealc                "    V P                  4       # )z'Return a float contained in this field.)r)   r#   s   &r   r!   OFTReal.value   s     ~~r   ro   Nr_   r`   ra   rb   rd   r!   re   rf   rg   s   @r   rr   rr      s        r   rr   c                       ] tR t^tRtR# )	OFTStringro   Nr_   r`   ra   rb   re   ro   r   r   rw   rw          r   rw   c                       ] tR t^tRtR# )OFTWideStringro   Nrx   ro   r   r   r{   r{      ry   r   r{   c                       ] tR t^tRtR# )	OFTBinaryro   Nrx   ro   r   r   r}   r}      ry   r   r}   c                   0   a  ] tR t^t o ]R 4       tRtV tR# )OFTDatec                     V P                  4       w  rr4rVp\        VP                  VP                  VP                  4      #   \        \        \
        3 d     R# i ; i)z4Return a Python `date` object for the OFTDate field.N)rE   r   r!   	TypeError
ValueErrorr	   r   r=   r>   r?   r@   rA   rB   rC   s   &       r   r!   OFTDate.value   sR    	)-)9)9);&BBBB"((BHH55:}5 		s   ?A AAro   Nru   rg   s   @r   r   r            r   r   c                   0   a  ] tR t^t o ]R 4       tRtV tR# )OFTDateTimec                     V P                  4       w  rr4rVp\        VP                  VP                  VP                  VP                  VP                  VP                  4      #   \        \        \
        3 d     R# i ; i)z=Return a Python `datetime` object for this OFTDateTime field.N)rE   r   r!   r   r   r	   r   s   &       r   r!   OFTDateTime.value   sd    	)-)9)9);&BBBBBHHbhh"((BHHbhhWW:}5 		s   A A# #A=<A=ro   Nru   rg   s   @r   r   r      s     
 
r   r   c                   0   a  ] tR t^t o ]R 4       tRtV tR# )OFTTimec                     V P                  4       w  rr4rVp\        VP                  VP                  VP                  4      #   \        \        3 d     R# i ; i)z5Return a Python `time` object for this OFTTime field.N)rE   r   r!   r   r	   r   s   &       r   r!   OFTTime.value   sP    	)-)9)9);&BBBB"((BHH55M* 		s   ?A AAro   Nru   rg   s   @r   r   r      r   r   r   c                       ] tR t^tRtRtR# )OFTInteger64Tro   N)r_   r`   ra   rb   rl   re   ro   r   r   r   r      s    Fr   r   c                       ] tR t^tRtR# )OFTIntegerListro   Nrx   ro   r   r   r   r      ry   r   r   c                       ] tR t^tRtR# )OFTRealListro   Nrx   ro   r   r   r   r      ry   r   r   c                       ] tR t^tRtR# )OFTStringListro   Nrx   ro   r   r   r   r      ry   r   r   c                       ] tR t^tRtR# )OFTWideStringListro   Nrx   ro   r   r   r   r      ry   r   r   c                       ] tR t^tRtR# )OFTInteger64Listro   Nrx   ro   r   r   r   r      ry   r   r   N)!ctypesr   r   r   r   r   django.contrib.gis.gdal.baser   django.contrib.gis.gdal.errorr	   "django.contrib.gis.gdal.prototypesr
   r   django.utils.encodingr   r   rj   rr   rw   r{   r}   r   r   r   r   r   r   r   r   r   r   itemsROGRFieldTypes)numclss   00r   <module>r      sJ    ) ) 1 7 9 +u.H u.r $ e  	 		E 		 	
e % e : 
	U 		% 		E 		 		u 	 z~w{y}}yw  ,9+>+>+@A+@xs#(+@AAs   D