'root@localhost:test>'select ogr_fid, astext(shape) from tuku where ogr_fid = 37341;
+---------+---------------------------------------------------------------------------------+
| ogr_fid | astext(shape) |
+---------+---------------------------------------------------------------------------------+
| 37341 | LINESTRING(60390.3439770672 -25918.3409153351,60390.3439770672 -25919.77362169) |
+---------+---------------------------------------------------------------------------------+
1 row in set, 1 warning (0.00 sec)
'root@localhost:test>'select shape into @lineOne from tuku where ogr_fid = 37341;
Query OK, 1 row affected (0.00 sec)
'root@localhost:test>'select ogr_fid,astext(shape) from tuku where MBRINTERSECTS(shape,@lineOne) and ogr_fid != 37341;
+---------+-----------------------------------------------------------------------------------+
| ogr_fid | astext(shape) |
+---------+-----------------------------------------------------------------------------------+
| 37342 | LINESTRING(60390.3439770672 -25919.77362169,60388.9097064654 -25919.77362169) |
| 37340 | LINESTRING(60391.7782476689 -25918.3409153351,60390.3439770672 -25918.3409153351) |
+---------+-----------------------------------------------------------------------------------+
2 rows in set, 1 warning (0.00 sec)
'root@localhost:test>'