<s> """<STR_LIT>""" <EOL> from django . db import models <EOL> from django . contrib . gis . db . backends . base import SpatialRefSysMixin <EOL> from django . utils . encoding import python_2_unicode_compatible <EOL> @ python_2_unicode_compatible <EOL> class GeometryColumns ( models . Model ) : <EOL> """<STR_LIT>""" <EOL> f_table_name = models . CharField ( max_length = <NUM_LIT> ) <EOL> f_geometry_column = models . CharField ( max_length = <NUM_LIT> ) <EOL> type = models . CharField ( max_length = <NUM_LIT:30> ) <EOL> coord_dimension = models . IntegerField ( ) <EOL> srid = models . IntegerField ( primary_key = True ) <EOL> spatial_index_enabled = models . IntegerField ( ) <EOL> class Meta : <EOL> db_table = '<STR_LIT>' <EOL> managed = False <EOL> @ classmethod <EOL> def table_name_col ( cls ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' <EOL> @ classmethod <EOL> def geom_col_name ( cls ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' <EOL> def __str__ ( self ) : <EOL> return "<STR_LIT>" % ( self . f_table_name , self . f_geometry_column , <EOL> self . coord_dimension , self . type , self . srid ) <EOL> class SpatialRefSys ( models . Model , SpatialRefSysMixin ) : <EOL> """<STR_LIT>""" <EOL> srid = models . IntegerField ( primary_key = True ) <EOL> auth_name = models . CharField ( max_length = <NUM_LIT> ) <EOL> auth_srid = models . IntegerField ( ) <EOL> ref_sys_name = models . CharField ( max_length = <NUM_LIT> ) <EOL> proj4text = models . CharField ( max_length = <NUM_LIT> ) <EOL> @ property <EOL> def wkt ( self ) : <EOL> from django . contrib . gis . gdal import SpatialReference <EOL> return SpatialReference ( self . proj4text ) . wkt <EOL> class Meta : <EOL> db_table = '<STR_LIT>' <EOL> managed = False </s>
