2021-02-20 17:44:18 +00:00
|
|
|
SELECT svg((0., 0.));
|
|
|
|
SELECT svg([(0., 0.), (10, 0), (10, 10), (0, 10)]);
|
|
|
|
SELECT svg([[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]]);
|
|
|
|
SELECT svg([[[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], [[(-10., -10.), (-10, -9), (-9, 10)]]]);
|
|
|
|
SELECT svg((0., 0.), 'b');
|
|
|
|
SELECT svg([(0., 0.), (10, 0), (10, 10), (0, 10)], 'b');
|
|
|
|
SELECT svg([[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], 'b');
|
|
|
|
SELECT svg([[[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], [[(-10., -10.), (-10, -9), (-9, 10)]]], 'b');
|
2020-06-22 18:04:42 +00:00
|
|
|
|
|
|
|
DROP TABLE IF EXISTS geo;
|
|
|
|
CREATE TABLE geo (p Tuple(Float64, Float64), s String, id Int) engine=Memory();
|
2021-02-20 17:44:18 +00:00
|
|
|
INSERT INTO geo VALUES ((0., 0.), 'b', 1);
|
|
|
|
INSERT INTO geo VALUES ((1., 0.), 'c', 2);
|
|
|
|
INSERT INTO geo VALUES ((2., 0.), 'd', 3);
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p) FROM geo ORDER BY id;
|
|
|
|
SELECT svg(p, 'b') FROM geo ORDER BY id;
|
2021-02-20 17:44:18 +00:00
|
|
|
SELECT svg((0., 0.), s) FROM geo ORDER BY id;
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p, s) FROM geo ORDER BY id;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS geo;
|
|
|
|
CREATE TABLE geo (p Array(Tuple(Float64, Float64)), s String, id Int) engine=Memory();
|
2021-02-20 17:44:18 +00:00
|
|
|
INSERT INTO geo VALUES ([(0., 0.), (10, 0), (10, 10), (0, 10)], 'b', 1);
|
|
|
|
INSERT INTO geo VALUES ([(1., 0.), (10, 0), (10, 10), (0, 10)], 'c', 2);
|
|
|
|
INSERT INTO geo VALUES ([(2., 0.), (10, 0), (10, 10), (0, 10)], 'd', 3);
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p) FROM geo ORDER BY id;
|
|
|
|
SELECT svg(p, 'b') FROM geo ORDER BY id;
|
2021-02-20 17:44:18 +00:00
|
|
|
SELECT svg([(0., 0.), (10, 0), (10, 10), (0, 10)], s) FROM geo ORDER BY id;
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p, s) FROM geo ORDER BY id;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS geo;
|
|
|
|
CREATE TABLE geo (p Array(Array(Tuple(Float64, Float64))), s String, id Int) engine=Memory();
|
2021-02-20 17:44:18 +00:00
|
|
|
INSERT INTO geo VALUES ([[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4, 4), (5, 4), (5, 5), (4, 5)]], 'b', 1);
|
|
|
|
INSERT INTO geo VALUES ([[(1., 0.), (10, 0), (10, 10), (0, 10)], [(4, 4), (5, 4), (5, 5), (4, 5)]], 'c', 2);
|
|
|
|
INSERT INTO geo VALUES ([[(2., 0.), (10, 0), (10, 10), (0, 10)], [(4, 4), (5, 4), (5, 5), (4, 5)]], 'd', 3);
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p) FROM geo ORDER BY id;
|
|
|
|
SELECT svg(p, 'b') FROM geo ORDER BY id;
|
2021-02-20 17:44:18 +00:00
|
|
|
SELECT svg([[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], s) FROM geo ORDER BY id;
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p, s) FROM geo ORDER BY id;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS geo;
|
|
|
|
CREATE TABLE geo (p Array(Array(Array(Tuple(Float64, Float64)))), s String, id Int) engine=Memory();
|
2021-02-20 17:44:18 +00:00
|
|
|
INSERT INTO geo VALUES ([[[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], [[(-10., -10.), (-10, -9), (-9, 10)]]], 'b', 1);
|
|
|
|
INSERT INTO geo VALUES ([[[(1., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], [[(-10., -10.), (-10, -9), (-9, 10)]]], 'c', 2);
|
|
|
|
INSERT INTO geo VALUES ([[[(2., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], [[(-10., -10.), (-10, -9), (-9, 10)]]], 'd', 3);
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p) FROM geo ORDER BY id;
|
|
|
|
SELECT svg(p, 'b') FROM geo ORDER BY id;
|
2021-02-20 17:44:18 +00:00
|
|
|
SELECT svg([[[(0., 0.), (10, 0), (10, 10), (0, 10)], [(4., 4.), (5, 4), (5, 5), (4, 5)]], [[(-10., -10.), (-10, -9), (-9, 10)]]], s) FROM geo ORDER BY id;
|
2020-06-22 18:04:42 +00:00
|
|
|
SELECT svg(p, s) FROM geo ORDER BY id;
|
2021-04-14 16:35:17 +00:00
|
|
|
|
|
|
|
DROP TABLE geo;
|