#NEWLINE# def get_geometry_type( self , table_name , geo_col ) : #NEWLINE# #INDENT# cursor = self . connection . cursor ( ) #NEWLINE# try : #NEWLINE# #INDENT# cursor . execute ( ( 'DESCRIBE %s' % self . connection . ops . quote_name ( table_name ) ) ) #NEWLINE# for ( column , typ , null , key , default , extra ) in cursor . fetchall ( ) : #NEWLINE# #INDENT# if ( column == geo_col ) : #NEWLINE# #INDENT# field_type = OGRGeomType ( typ ) . django #NEWLINE# field_params = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# cursor . close ( ) #NEWLINE# #UNINDENT# return ( field_type , field_type )