INSERT INTO node
(node_id, shape) VALUES
(1001, ST_GeometryFromText('POINT(0 0)', 4326)),
(1002, ST_GeometryFromText('POINT(0 10)', 4326)),
(1003, ST_GeometryFromText('POINT(10 10)', 4326)),
(1004, ST_GeometryFromText('POINT(0 0)', 4326)),
(1005, ST_GeometryFromText('POINT(0 10)', 4326)),
(1006, ST_GeometryFromText('POINT(10 10)', 4326)),
(1007, ST_GeometryFromText('POINT(2 4)', 4326));

INSERT INTO edge
(edge_id, f_node_id, t_node_id, f_zlev, t_zlev, shape) VALUES
(101, 1001, 1002, 0, 0, ST_GeometryFromText('LINESTRING(0 0, 0 10)', 4326)),
(102, 1002, 1003, 0, 0, ST_GeometryFromText('LINESTRING(0 10, 10 10)', 4326)),
(103, 1003, 1001, 0, 0, ST_GeometryFromText('LINESTRING(10 10, 0 0)', 4326)),

(104, 1004, 1005, 0, 0, ST_GeometryFromText('LINESTRING(0 0, 0 10)', 4326)),
(105, 1005, 1006, 0, 0, ST_GeometryFromText('LINESTRING(0 10, 10 10)', 4326)),
(106, 1006, 1004, 0, 0, ST_GeometryFromText('LINESTRING(10 10, 0 0)', 4326)),

(107, 1007, 1007, 0, 0, ST_GeometryFromText('LINESTRING(2 4, 2 8, 8 8, 2 4)', 4326));

INSERT INTO face
(face_id) VALUES
(10),
(11),
(12);

INSERT INTO bld
(bld_id, ft_type_id, cond, height, isocode) VALUES
(1, 101, 0, 100,  NULL),
(2, 102, 0, NULL, NULL);


INSERT INTO bld_face
(bld_id, face_id, is_interior) VALUES
(1, 10, false),

(2, 11, false),
(2, 12, true);


INSERT INTO face_edge
(face_id, edge_id) VALUES
(10, 101),
(10, 102),
(10, 103),

(11, 104),
(11, 105),
(11, 106),

(12, 107);
