
    g                     v    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y)	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y)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y)SpatialiteGeometryColumns.Metagisgeometry_columnsFN__name__
__module____qualname__	app_labeldb_tablemanaged     /var/www/python.vincentserveurtest.ovh/public_html/venv/lib/python3.12/site-packages/django/contrib/gis/db/backends/spatialite/models.pyMetar      s    	%r   r   c                 z    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__   s=    0""  IIII4
 
 	
r   c                      y)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                      y)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3L(((C8)f))+O640D/F//16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y
)SpatialiteSpatialRefSysz6
    The 'spatial_ref_sys' table from SpatiaLite.
    Tr
   r   r   i   c                       e Zd ZdZdZdZy)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0D   C0I###%I#6##s3L   D1IV.F 
  r   r2   N)r,   *django.contrib.gis.db.backends.base.modelsr   	django.dbr   Modelr   r2   r   r   r   <module>rA      s7    J (# (#Vfll,> r   