|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/contrib/gis/db/backends/spatialite/ |
Upload File : |
�
r�\c @ sf d d l m Z d d l m Z m Z d d l m Z d e f d � � YZ d e f d � � YZ d S( i����( t OGRGeomType( t DatabaseIntrospectiont FlexibleFieldLookupDict( t sixt GeoFlexibleFieldLookupDictc B s[ e Z d Z e j j � Z e j i d d 6d d 6d d 6d d 6d d 6d d 6d d 6� RS( si
Sublcass that includes updates the `base_data_types_reverse` dict
for geometry field types.
t
GeometryFieldt pointt
linestringt polygont
multipointt multilinestringt multipolygont geometrycollection( t __name__t
__module__t __doc__R t base_data_types_reverset copyt update( ( ( sY /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/backends/spatialite/introspection.pyR s
t SpatiaLiteIntrospectionc B s e Z e � Z d � Z RS( c C s� | j j � } z� | j d | | f � | j � } | sS t d | | f � � n t | d � j } | d } | d } i } | d k r� | | d <n t | t j � r� d | k r� d | d
<n Wd | j
� X| | f S( Nss SELECT "coord_dimension", "srid", "type" FROM "geometry_columns" WHERE "f_table_name"=%s AND "f_geometry_column"=%ss. Could not find a geometry column for "%s"."%s"i i i i� t sridt Zi t dim( t
connectiont cursort executet fetchonet ExceptionR t djangot
isinstanceR t string_typest close( t selft
table_namet geo_colR t rowt
field_typeR R t field_params( ( sY /tmp/pip-install-XxeQeY/django/django/contrib/gis/db/backends/spatialite/introspection.pyt get_geometry_type s$
( R
R R t data_types_reverseR&