
    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 )	zK
 The GeometryColumns and SpatialRefSys models for the SpatiaLite backend.
    )SpatialRefSysMixin)modelsc                   "   e Zd ZdZ ej        d          Z ej        d          Z ej                    Z	 ej        d          Z
 ej                    Z ej        d          Z G d d	          Zd
 Zed             Zed             ZdS )SpatialiteGeometryColumnsz7
    The 'geometry_columns' table from SpatiaLite.
       
max_lengthTprimary_keygeometry_type)	db_columnc                       e Zd ZdZdZdZdS )SpatialiteGeometryColumns.Metagisgeometry_columnsFN__name__
__module____qualname__	app_labeldb_tablemanaged     m/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/django/contrib/gis/db/backends/spatialite/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!SpatialiteGeometryColumns.__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(SpatialiteGeometryColumns.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'SpatialiteGeometryColumns.geom_col_name+   s
     #"r   N)r   r   r   __doc__r   	CharFieldr   r   IntegerFieldr    r"   spatial_index_enabledr!   r   r%   classmethodr)   r+   r   r   r   r   r   	   s         $6#s333L((C888)f)++O64000D/F/116999D       

 
 
   [ # # [# # #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 ej        d          Z G d d          Zed	             Zd
S )SpatialiteSpatialRefSysz6
    The 'spatial_ref_sys' table from SpatiaLite.
    Tr
   r   r   i   c                       e Zd ZdZdZdZdS )SpatialiteSpatialRefSys.Metar   spatial_ref_sysFNr   r   r   r   r   r4   @   s        	$r   r   c                     | j         S )N)srtextr#   s    r   wktzSpatialiteSpatialRefSys.wktE   s
    {r   N)r   r   r   r,   r   r.   r"   r-   	auth_name	auth_sridref_sys_name	proj4textr7   r   propertyr8   r   r   r   r2   r2   4   s          64000D  C000I##%%I#6#s333L  D111IV...F       
   X  r   r2   N)r,   *django.contrib.gis.db.backends.base.modelsr   	django.dbr   Modelr   r2   r   r   r   <module>rA      s     J I I I I I      (# (# (# (# (# (# (# (#V    fl,>     r   