--create intersections and overlaps that affect several objects of ad_subst and ad categories

INSERT INTO geometry VALUES
    (801, ST_Transform(ST_SetSRID(ST_GeomFromText('LINESTRING (30 30, 25 40, 30 40)'), 4326), 3395));
INSERT INTO geometry VALUES
    (805, ST_Transform(ST_SetSRID(ST_GeomFromText('LINESTRING (19 35, 19.5 30, 20 30)'), 4326), 3395));
INSERT INTO geometry VALUES
    (810, ST_Transform(ST_SetSRID(ST_GeomFromText('LINESTRING (19 35, 15 42, 19 40)'), 4326), 3395));
INSERT INTO geometry VALUES
    (815, ST_Transform(ST_SetSRID(ST_GeomFromText('LINESTRING (20 30, 31 31, 30 30)'), 4326), 3395));

UPDATE object_revision SET geometry_id=801 WHERE object_id=15;
UPDATE object_revision SET geometry_id=805 WHERE object_id=11;
UPDATE object_revision SET geometry_id=810 WHERE object_id=12;
UPDATE object_revision SET geometry_id=815 WHERE object_id=14;
