
    Dvg                     p    d Z ddlmZ ddlmZ  G d dej                  Z G d dej        e          ZdS )	zH
 The GeometryColumns and SpatialRefSys models for the PostGIS backend.
    )SpatialRefSysMixin)modelsc                   H   e Zd ZdZ ej        d          Z ej        d          Z ej        d          Z ej        d          Z	 ej
                    Z ej
        d          Z ej        d          Z G d d          Zd	 Zed
             Zed             ZdS )PostGISGeometryColumnszc
    The 'geometry_columns' view from PostGIS. See the PostGIS
    documentation at Ch. 4.3.2.
       
max_lengthTprimary_key   c                       e Zd ZdZdZdZdS )PostGISGeometryColumns.Metagisgeometry_columnsFN__name__
__module____qualname__	app_labeldb_tablemanaged     j/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/django/contrib/gis/db/backends/postgis/models.pyMetar      s        	%r   r   c                 H    d| j         | j        | j        | j        | j        fz  S )Nz%s.%s - %dD %s field (SRID: %d))f_table_namef_geometry_columncoord_dimensiontypesridselfs    r   __str__zPostGISGeometryColumns.__str__   s0    0" II4
 
 	
r   c                     dS )zf
        Return the name of the metadata column used to store the feature table
        name.
        r   r   clss    r   table_name_colz%PostGISGeometryColumns.table_name_col%   s	     ~r   c                     dS )zk
        Return the name of the metadata column used to store the feature
        geometry column.
        r   r   r&   s    r   geom_col_namez$PostGISGeometryColumns.geom_col_name-   s
     #"r   N)r   r   r   __doc__r   	CharFieldf_table_catalogf_table_schemar   r   IntegerFieldr   r!   r    r   r$   classmethodr(   r*   r   r   r   r   r   	   s        
 'f&#666O%V%555N#6#s333L((C888)f)++O64000D6r***D       

 
 
   [ # # [# # #r   r   c                       e Zd ZdZ ej        d          Z ej        d          Z ej                    Z	 ej        d          Z
 ej        d          Z G d d          Zed	             Zd
S )PostGISSpatialRefSyszc
    The 'spatial_ref_sys' table from PostGIS. See the PostGIS
    documentation at Ch. 4.2.1.
    Tr
   r   r   i   c                       e Zd ZdZdZdZdS )PostGISSpatialRefSys.Metar   spatial_ref_sysFNr   r   r   r   r   r4   B   s        	$r   r   c                     | j         S )N)srtextr"   s    r   wktzPostGISSpatialRefSys.wktG   s
    {r   N)r   r   r   r+   r   r/   r!   r,   	auth_name	auth_sridr7   	proj4textr   propertyr8   r   r   r   r2   r2   6   s         
 64000D  C000I##%%IV...F  D111I       
   X  r   r2   N)r+   *django.contrib.gis.db.backends.base.modelsr   	django.dbr   Modelr   r2   r   r   r   <module>r@      s     J I I I I I      *# *# *# *# *#V\ *# *# *#Z    6<);     r   