+
    S<Âjt"  ã                   óÈ   € ^ RI HtHt ^ RIHt ^ RIHtHt ^ RIH	t	H
t
 ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ^ RIHtHt  ! R R]4      tR# )é    )ÚbyrefÚc_double)ÚGDALBase)ÚEnvelopeÚOGREnvelope)ÚGDALExceptionÚSRSException)ÚFeature)ÚOGRFieldTypes)ÚOGRGeometry)ÚOGRGeomType)Úds)Úgeom)Úsrs)ÚSpatialReference)Úforce_bytesÚ	force_strc                   ó   a € ] tR t^t o RtR tR tR tR tR t	R t
]R 4       t]R	 4       t]RR
 l4       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]! ]]4      tR tRR ltR tRtV tR# )ÚLayerzU
A class that wraps an OGR Layer, needs to be instantiated from a DataSource
object.
c                óº   € V'       g   \        R4      hWn        W n        \        P                  ! V P
                  4      V n        V P                  R4      V n        R# )a  
Initialize on an OGR C pointer to the Layer and the `DataSource` object
that owns this layer. The `DataSource` object is required so that a
reference to it is kept with this Layer. This prevents garbage
collection of the `DataSource` while this Layer is still active.
z*Cannot create Layer, invalid pointer givens
   RandomReadN)	r   ÚptrÚ_dsÚcapiÚget_layer_defnÚ_ptrÚ_ldefnÚtest_capabilityÚ_random_read)ÚselfÚ	layer_ptrr   s   &&&Ú]/var/www/html/data_capital/venv/lib/python3.14/site-packages/django/contrib/gis/gdal/layer.pyÚ__init__ÚLayer.__init__   sF   € ÷ ÜÐ LÓMÐMØŒØŒÜ×)Ò)¨$¯)©)Ó4ˆŒà ×0Ñ0°Ó?ˆÖó    c                óP  € \        V\        4      '       d$   V^ 8  d   \        R4      hV P                  V4      # \        V\        4      '       dI   VP                  V P                  4      w  r#p\        W#V4       Uu. uF  qPP                  V4      NK  	  up# \        R4      hu upi )z'Get the Feature at the specified index.z/Negative indices are not allowed on OGR Layers.z>Integers and slices may only be used when indexing OGR Layers.)	Ú
isinstanceÚintÚ
IndexErrorÚ_make_featureÚsliceÚindicesÚnum_featÚrangeÚ	TypeError)r   ÚindexÚstartÚstopÚstrideÚfids   &&    r!   Ú__getitem__ÚLayer.__getitem__*   s–   € ä�eœS×!Ò!ð �qŒyÜ Ð!RÓSÐSØ×%Ñ% eÓ,Ð,Ü˜œu×%Ò%à"'§-¡-°·±Ó">ÑˆE˜Ü7<¸UÈ&Ô7QÓRÑ7Q°×&Ñ& sÖ+Ñ7QÑRÐRäØPóð ùò Ss   Á<B#c              #  óÞ   "  € \         P                  ! V P                  4       \        V P                  4       F/  p\        \         P                  ! V P                  4      V 4      x € K1  	  R# 5i)z'Iterate over each Feature in the Layer.N)r   Úreset_readingr   r-   r,   r
   Úget_next_feature©r   Úis   & r!   Ú__iter__ÚLayer.__iter__<   sH   é € ô 	×Ò˜4Ÿ9™9Ô%Ü�t—}‘}Ö%ˆAÜœ$×/Ò/°·	±	Ó:¸DÓAÔAó &ùs   ‚A+A-c                ó   € V P                   # )z%The length is the number of features.)r,   ©r   s   &r!   Ú__len__ÚLayer.__len__C   s   € à�}‰}Ðr$   c                ó   € V P                   # )zThe string name of the layer.)Únamer>   s   &r!   Ú__str__ÚLayer.__str__G   s   € à�y‰yÐr$   c                ó   € V P                   '       d-    \        \        P                  ! V P                  V4      V 4      # V  F  pVP                  V8X  g   K  Vu # 	  \        RV,          4      h  \
         d     Li ; i)a  
Helper routine for __getitem__ that constructs a Feature from the given
Feature ID. If the OGR Layer does not support random-access reading,
then each feature of the layer will be incremented through until the
a Feature is found matching the given feature ID.
zInvalid feature id: %s.)r   r
   r   Úget_featurer   r   r3   r(   )r   Úfeat_idÚfeats   && r!   r)   ÚLayer._make_featureK   sw   € ð ××ÐðÜœt×/Ò/°·±¸'ÓBÀDÓIÐIó �Ø—8‘8˜wÖ&Ø’Kñ ô Ð2°WÕ<Ó=Ð=øô !ô Ùðús   ”*A/ Á/A=Á<A=c                ó‚   € \        4       p\        P                  ! V P                  \	        V4      ^4       \        V4      # )z.Return the extent (an Envelope) of this layer.)r   r   Ú
get_extentr   r   r   )r   Úenvs   & r!   ÚextentÚLayer.extentb   s-   € ô ‹mˆÜ�Š˜Ÿ™¤%¨£*¨aÔ0Ü˜‹}Ðr$   c                ó„   € \         P                  ! V P                  4      p\        WP                  P
                  RR7      # )z1Return the name of this layer in the Data Source.T©Ústrings_only)r   Úget_fd_namer   r   r   Úencoding)r   rB   s   & r!   rB   Ú
Layer.namei   s/   € ô ×Ò §¡Ó,ˆÜ˜Ÿx™x×0Ñ0¸tÔDÐDr$   c                óD   € \         P                  ! V P                  V4      # )z+Return the number of features in the Layer.)r   Úget_feature_countr   )r   Úforces   &&r!   r,   ÚLayer.num_feato   s   € ô ×%Ò% d§h¡h°Ó6Ð6r$   c                óB   € \         P                  ! V P                  4      # )z)Return the number of fields in the Layer.)r   Úget_field_countr   r>   s   &r!   Ú
num_fieldsÚLayer.num_fieldst   s   € ô ×#Ò# D§K¡KÓ0Ð0r$   c                óT   € \        \        P                  ! V P                  4      4      # )z4Return the geometry type (OGRGeomType) of the Layer.)r   r   Úget_fd_geom_typer   r>   s   &r!   Ú	geom_typeÚLayer.geom_typey   s   € ô œ4×0Ò0°·±Ó=Ó>Ð>r$   c                ó¦   €  \         P                  ! V P                  4      p\        \        P
                  ! V4      4      #   \         d     R# i ; i)z0Return the Spatial Reference used in this Layer.N)r   Úget_layer_srsr   r   Úsrs_apiÚ	clone_srsr	   )r   r   s   & r!   r   Ú	Layer.srs~   sC   € ð	Ü×$Ò$ T§X¡XÓ.ˆCÜ#¤G×$5Ò$5°cÓ$:Ó;Ð;øÜô 	Úð	ús   ‚>A ÁAÁAc                óü   € \        V P                  4       Uu. uFX  p\        \        P                  ! \        P
                  ! V P                  V4      4      V P                  P                  RR7      NKZ  	  up# u upi )z\
Return a list of string names corresponding to each of the Fields
available in this Layer.
TrP   )	r-   r[   r   r   Úget_field_nameÚget_field_defnr   r   rS   r9   s   & r!   ÚfieldsÚLayer.fields‡   sj   € ô ˜4Ÿ?™?Ô+ó
ñ ,�ô Ü×#Ò#¤D×$7Ò$7¸¿¹ÀQÓ$GÓHØ—‘×!Ñ!Ø!÷ñ
 ,ñ
ð 	
ùò 
s   ˜AA9c           
     óÒ   € \        V P                  4       Uu. uFC  p\        \        P                  ! \        P
                  ! V P                  V4      4      ,          NKE  	  up# u upi )z¾
Return a list of the types of fields in this Layer. For example,
return the list [OFTInteger, OFTReal, OFTString] for an OGR layer that
has an integer, a floating-point, and string fields.
)r-   r[   r   r   Úget_field_typerh   r   r9   s   & r!   Úfield_typesÚLayer.field_types–   sV   € ô ˜4Ÿ?™?Ô+ó
á+�ô œ$×-Ò-¬d×.AÒ.AÀ$Ç+Á+ÈqÓ.QÓR×SÐSÙ+ñ
ð 	
ùò 
s   ˜A	A$c           	     ó¼   € \        V P                  4       Uu. uF8  p\        P                  ! \        P                  ! V P
                  V4      4      NK:  	  up# u upi )z;Return a list of the maximum field widths for the features.)r-   r[   r   Úget_field_widthrh   r   r9   s   & r!   Úfield_widthsÚLayer.field_widths¢   sN   € ô
 ˜4Ÿ?™?Ô+ó
á+�ô × Ò ¤×!4Ò!4°T·[±[À!Ó!DÖEÙ+ñ
ð 	
ùò 
ó   ˜>Ac           	     ó¼   € \        V P                  4       Uu. uF8  p\        P                  ! \        P                  ! V P
                  V4      4      NK:  	  up# u upi )z-Return the field precisions for the features.)r-   r[   r   Úget_field_precisionrh   r   r9   s   & r!   Úfield_precisionsÚLayer.field_precisionsª   sN   € ô
 ˜4Ÿ?™?Ô+ó
á+�ô ×$Ò$¤T×%8Ò%8¸¿¹ÀaÓ%HÖIÙ+ñ
ð 	
ùò 
rs   c                ó¢   €  \        \        P                  ! \        P                  ! V P
                  4      4      4      #   \         d     R # i ; i)N)r   Úgeom_apiÚ
clone_geomr   Úget_spatial_filterr   r   r>   s   &r!   Ú_get_spatial_filterÚLayer._get_spatial_filter²   s>   € ð	Üœx×2Ò2´4×3JÒ3JÈ4Ï8É8Ó3TÓUÓVÐVøÜô 	Úð	ús   ‚<? ¿AÁAc                óÈ  € \        V\        4      '       d.   \        P                  ! V P                  VP                  4       R# \        V\
        \        34      '       dS   \        V4      ^8X  g   \        R4      h\        \        V4      w  r#rE\        P                  ! V P                  W#WE4       R# Vf$   \        P                  ! V P                  R4       R# \        R4      h)é   z/Spatial filter list/tuple must have 4 elements.NzJSpatial filter must be either an OGRGeometry instance, a 4-tuple, or None.)r&   r   r   Úset_spatial_filterr   ÚtupleÚlistÚlenÚ
ValueErrorÚmapr   Úset_spatial_filter_rectr.   )r   ÚfilterÚxminÚyminÚxmaxÚymaxs   &&    r!   Ú_set_spatial_filterÚLayer._set_spatial_filter¸   s¤   € Ü�fœk×*Ò*Ü×#Ò# D§H¡H¨f¯j©jÖ9Ü˜¤¬ ×.Ò.Ü�v“; !Ô#Ü Ð!RÓSÐSô &)¬°6Ó%:Ñ"ˆD˜Ü×(Ò(¨¯©°4¸tÖJØŠ^Ü×#Ò# D§H¡H¨dÖ3äðóð r$   c                ó�   € WP                   9  d   \        RV,          4      hV  Uu. uF  q"P                  V4      NK  	  up# u upi )zO
Return a list containing the given field name for every Feature
in the Layer.
zinvalid field name: %s)ri   r   Úget)r   Ú
field_namerH   s   && r!   Ú
get_fieldsÚLayer.get_fieldsÍ   s>   € ð
 Ÿ[™[Ô(ÜÐ 8¸:Õ EÓFÐFÙ15Ó6±¨—‘˜Ö$±Ñ6Ð6ùÒ6s   §Ac                ó¾   € V'       d2   ^ RI Hp V  Uu. uF  q2! VP                  P                  4      NK   	  up# V  Uu. uF  q3P                  NK  	  up# u upi u upi )zJ
Return a list containing the OGRGeometry for every Feature in
the Layer.
)ÚGEOSGeometry)Údjango.contrib.gis.geosr”   r   Úwkb)r   Úgeosr”   rH   s   &&  r!   Ú	get_geomsÚLayer.get_geomsÖ   sL   € ÷
 Ý<á<@ÓA¹D°D�L §¡§¡Ö/¹DÑAÐAá*.Ó/©$ $—I”I©$Ñ/Ð/ùò Bùâ/s
   “$A¾Ac                óh   € \        \        P                  ! V P                  \	        V4      4      4      # )a7  
Return a bool indicating whether the this Layer supports the given
capability (a string). Valid capability strings include:
  'RandomRead', 'SequentialWrite', 'RandomWrite', 'FastSpatialFilter',
  'FastFeatureCount', 'FastGetExtent', 'CreateField', 'Transactions',
  'DeleteFeature', and 'FastSetNextByIndex'.
)Úboolr   r   r   r   )r   Ú
capabilitys   &&r!   r   ÚLayer.test_capabilityâ   s%   € ô ”D×(Ò(¨¯©´;¸zÓ3JÓKÓLÐLr$   )r   r   r   r   N)é   )F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r"   r4   r;   r?   rC   r)   ÚpropertyrM   rB   r,   r[   r_   r   ri   rm   rq   rv   r|   rŒ   Úspatial_filterr‘   r˜   r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r!   r   r      s$  ø‡ € ñò
@òò$Bòòò>ð. ñó ðð ñEó ðEð
 ó7ó ð7ð ñ1ó ð1ð ñ?ó ð?ð ñó ðð ñ
ó ð
ð ñ	
ó ð	
ð ñ
ó ð
ð ñ
ó ð
òòñ$ Ð1Ð3FÓG€Nò7ô
0÷Mð Mr$   r   N) Úctypesr   r   Údjango.contrib.gis.gdal.baser   Ú django.contrib.gis.gdal.enveloper   r   Údjango.contrib.gis.gdal.errorr   r	   Údjango.contrib.gis.gdal.featurer
   Údjango.contrib.gis.gdal.fieldr   Ú"django.contrib.gis.gdal.geometriesr   Ú django.contrib.gis.gdal.geomtyper   Ú"django.contrib.gis.gdal.prototypesr   r   r   ry   r   rc   Údjango.contrib.gis.gdal.srsr   Údjango.utils.encodingr   r   r   © r$   r!   Ú<module>rµ      s<   ðß "å 1ß Bß EÝ 3Ý 7Ý :Ý 8Ý 9Ý ?Ý =Ý 8ß 8ôUMˆHö UMr$   