def _geom_index(self, style, db_table):

        # Getting the index name.
        idx_name = '%s_%s_id' % (db_table, self.column)
        
        sql = style.SQL_KEYWORD('CREATE SPATIAL INDEX ') + \
              style.SQL_TABLE(qn(idx_name)) + \
              style.SQL_KEYWORD(' ON ') + \
              style.SQL_TABLE(qn(db_table)) + '(' + \
              style.SQL_FIELD(qn(self.column)) + ');'
        return sql
Creates a spatial index for the geometry column.  If MyISAM tables are
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/db/backend/mysql/field.py/MySQLGeoField._geom_index