
    Vh!                     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)	ak  
The GeometryColumns and SpatialRefSys models for the Oracle spatial
backend.

It should be noted that Oracle Spatial does not have database tables
named according to the OGC standard, so the closest analogs are used.
For example, the `USER_SDO_GEOM_METADATA` is used for the GeometryColumns
model and the `SDO_COORD_REF_SYS` is used for the SpatialRefSys model.
    )models)SpatialRefSysMixinc                       e Zd ZdZ ej
                  d      Z ej
                  d      Z ej                  d      Z	 G d d      Z
d	 Zed
        Zed        Zy)OracleGeometryColumnsz0Maps to the Oracle USER_SDO_GEOM_METADATA table.    
max_lengthi   Tprimary_keyc                       e Zd ZdZdZdZy)OracleGeometryColumns.MetagisUSER_SDO_GEOM_METADATAFN__name__
__module____qualname__	app_labeldb_tablemanaged     \/home/dcms/DCMS/lib/python3.12/site-packages/django/contrib/gis/db/backends/oracle/models.pyMetar      s    	+r   r   c                 T    | j                   d| j                  d| j                  dS )Nz - z (SRID: ))
table_namecolumn_namesridselfs    r   __str__zOracleGeometryColumns.__str__   s    '+8H8H$))TTr   c                      y)zf
        Return the name of the metadata column used to store the feature table
        name.
        r   r   clss    r   table_name_colz$OracleGeometryColumns.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#OracleGeometryColumns.geom_col_name'   s     r   N)r   r   r   __doc__r   	CharFieldr   r   IntegerFieldr   r   r"   classmethodr&   r(   r   r   r   r   r      ss    6!!!R0J"&""d3K640D 
U    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)OracleSpatialRefSysz&Maps to the Oracle MDSYS.CS_SRS table.D   r   Tr
      i  )nullc                       e Zd ZdZdZdZy)OracleSpatialRefSys.Metar   CS_SRSFNr   r   r   r   r   r3   <   s    	r   r   c                     | j                   S )N)wktextr    s    r   wktzOracleSpatialRefSys.wktA   s    {{r   N)r   r   r   r)   r   r*   cs_namer+   r   	auth_srid	auth_namer6   PolygonField	cs_boundsr   propertyr7   r   r   r   r.   r.   0   s    ,f"-G640D###%I   C0IV.F $##.I 
  r   r.   N)r)   django.contrib.gis.dbr   *django.contrib.gis.db.backends.base.modelsr   Modelr   r.   r   r   r   <module>rA      s6    ) IFLL B&,,(: r   