tiles improved

The database tiles wher improved. They end now a line earlier.
Intersection test added (id -952).