+
    Tj                     x    ^ RI Ht ^ RIHt ^ RIHt ^ RIHtHt ^ RI	H
t ^ RI	Ht ^ RIHtHt  ! R R	]4      tR
# )    )GDALBase)GDALException)Field)OGRGeometryOGRGeomType)ds)geom)force_bytes	force_strc                      a  ] tR t^t o Rt]P                  tR tR t	R 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R tRtV tR# )FeaturezU
This class that wraps an OGR Feature, needs to be instantiated
from a Layer object.
c                D    V'       g   \        R4      hWn        W n        R# )z9
Initialize Feature from a pointer and its Layer object.
z1Cannot create OGR Feature, invalid pointer given.N)r   ptr_layer)selffeatlayers   &&&T/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/gdal/feature.py__init__Feature.__init__   s      STT    c                    \        V\        4      '       d   V P                  V4      pM1^ Tu;8:  d   V P                  8  d   M MTpM\	        RV,          4      h\        W4      # )a  
Get the Field object at the specified index, which may be either
an integer or the Field's string label. Note that the Field object
is not the field's _value_ -- use the `get` method instead to
retrieve the value (e.g. an integer) instead of a Field instance.
z9Index out of range when accessing field in a feature: %s.)
isinstancestrindex
num_fields
IndexErrorr   )r   r   is   && r   __getitem__Feature.__getitem__   sV     eS!!

5!A%)$//)AKeS  T~r   c                    V P                   # )z+Return the count of fields in this feature.)r   r   s   &r   __len__Feature.__len__0   s    r   c                @    RV P                   V P                  3,          # )zThe string name of the feature.zFeature FID %d in Layer<%s>)fid
layer_namer"   s   &r   __str__Feature.__str__4   s    ,$///JJJr   c                j    \        \        P                  ! V P                  VP                  4      4      # )z'Do equivalence testing on the features.)boolcapifeature_equalr   _ptr)r   others   &&r   __eq__Feature.__eq__8   s"    D&&txx<==r   c                B    V P                   P                  P                  # )N)r   _dsencodingr"   s   &r   r4   Feature.encoding=   s    {{'''r   c                B    \         P                  ! V P                  4      # )zReturn the feature identifier.)r,   get_fidr   r"   s   &r   r&   Feature.fidA   s     ||DHH%%r   c                    \         P                  ! V P                  P                  4      p\	        WP
                  RR7      # )z-Return the name of the layer for the feature.Tstrings_only)r,   get_feat_namer   _ldefnr   r4   )r   names   & r   r'   Feature.layer_nameF   s/     !!$++"4"45}}4@@r   c                B    \         P                  ! V P                  4      # )z+Return the number of fields in the Feature.)r,   get_feat_field_countr   r"   s   &r   r   Feature.num_fieldsL   s     ((22r   c                    \        V P                  4       Uu. uFX  p\        \        P                  ! \        P
                  ! V P                  P                  V4      4      V P                  RR7      NKZ  	  up# u upi )z'Return a list of fields in the Feature.Tr:   )	ranger   r   r,   get_field_nameget_field_defnr   r=   r4   )r   r   s   & r   fieldsFeature.fieldsQ   sj     4??+
 , ##D$7$78J8JA$NO!
 ,
 	
 
s   AA9c                    \         P                  ! V P                  4      p\        \        P
                  ! V4      4      # )z)Return the OGR Geometry for this Feature.)r,   get_feat_geom_refr   r   geom_api
clone_geom)r   geom_ptrs   & r   r	   Feature.geom]   s.     ))$((38..x899r   c                h    \        \        P                  ! V P                  P                  4      4      # )z.Return the OGR Geometry Type for this Feature.)r   r,   get_fd_geom_typer   r=   r"   s   &r   	geom_typeFeature.geom_typed   s$     4001C1CDEEr   c                @    \        VRV4      pW,          P                  # )z
Return the value of the field, instead of an instance of the Field
object. May take a string of the field name or a Field object as
parameters.
r>   )getattrvalue)r   field
field_names   && r   getFeature.getj   s!     UFE2
%%%r   c                    \         P                  ! V P                  \        V4      4      pV^ 8  d   \	        RV,          4      hV# )z)Return the index of the given field name.z!Invalid OFT field name given: %s.)r,   get_field_indexr   r
   r   )r   rW   r   s   && r   r   Feature.indexs   s:      ;z+BCq5@:MNNr   )r   r   N)__name__
__module____qualname____firstlineno____doc__r,   destroy_feature
destructorr   r   r#   r(   r0   propertyr4   r&   r'   r   rG   r	   rQ   rX   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s     
 %%J"K>
 ( ( & & A A
 3 3 	
 	
 : : F F
& r   r   N)django.contrib.gis.gdal.baser   django.contrib.gis.gdal.errorr   django.contrib.gis.gdal.fieldr   "django.contrib.gis.gdal.geometriesr   r   "django.contrib.gis.gdal.prototypesr   r,   r	   rK   django.utils.encodingr
   r   r    r   r   <module>ro      s(    1 7 / G 9 ? 8jh jr   