+
    Tjq                     4    ^ RI Ht ^ RIHt  ! R R]4      tR# )    )OGRGeomType)DatabaseIntrospectionc                   l   a a ] tR t^t o/ t. ]P                  ORNRNRNRNRNtV 3R ltR tRt	Vt
V ;t# )	PostGISIntrospectiongeography_columnsgeometry_columnsraster_columnsspatial_ref_sysraster_overviewsc                x  < V P                   '       g   V P                  P                  4       ;_uu_ 4       pVP                  R 4       \	        VP                  4       4      V n         RRR4       V P                  P                  R V P                    4       4       \        SV `%  W4      #   + '       g   i     LK; i)zKSELECT oid, typname FROM pg_type WHERE typname IN ('geometry', 'geography')Nc              3   (   "   T F  qR 3x  K
  	  R# 5i)GeometryFieldN ).0oids   & i/var/www/idalgo/venv/lib/python3.14/site-packages/django/contrib/gis/db/backends/postgis/introspection.py	<genexpr>6PostGISIntrospection.get_field_type.<locals>.<genexpr>   s      +2I3o&2Is   )
postgis_oid_lookup
connectioncursorexecutedictfetchalldata_types_reverseupdatesuperget_field_type)self	data_typedescriptionr   	__class__s   &&& r   r   #PostGISIntrospection.get_field_type   s    &&& ''))VA
 +/v/@*A' * ##** +262I2I+  w%i== *)s   0B))B9	c           	        V P                   P                  4       ;_uu_ 4       pVP                  RWP                  34       VP	                  4       pV'       g   \        RV: RVP                  : R24      hVw  rVp\        V4      P                  p/ pV P                  P                  VP                  4      R8X  d   RVR&   VR8w  d   WhR&   V^8w  d   WXR	&   R
R
R
4       Wx3#   + '       g   i     XX3# ; i)z
The geometry type OID used by PostGIS does not indicate the particular
type of field that a geometry column is (e.g., whether it's a
PointField or a PolygonField). Thus, this routine queries the PostGIS
metadata tables to determine the geometry type.
a   
                SELECT t.coord_dimension, t.srid, t.type FROM (
                    SELECT * FROM geometry_columns
                    UNION ALL
                    SELECT * FROM geography_columns
                ) AS t WHERE t.f_table_name = %s AND t.f_geometry_column = %s
            z3Could not find a geometry or geography column for "z".""	geographyTi  sriddimN)r   r   r   namefetchone	Exceptionr   djangor   get	type_code)	r   
table_namer!   r   rowr(   r'   
field_typefield_paramss	   &&&      r   get_geometry_type&PostGISIntrospection.get_geometry_type$   s     __##%%NN --.	 //#C!;#3#35  %(!Cz %Z077J L&&**;+@+@A[P,0[)t|'+V$ax&)U#; &< ''= &%< <''s   B5C##C6	)r   )__name__
__module____qualname____firstlineno__r   r   ignored_tablesr   r3   __static_attributes____classdictcell____classcell__)r"   __classdict__s   @@r   r   r      s_     		-	- 	 		
 	 	N>&%( %(    r   N)django.contrib.gis.gdalr   +django.db.backends.postgresql.introspectionr   r   r   r>   r   <module>rA      s    / MD(0 D(r>   