2021-11-21 10:58:26 +00:00
|
|
|
-- Tags: no-fasttest
|
2021-09-12 12:35:27 +00:00
|
|
|
|
2019-03-25 14:34:52 +00:00
|
|
|
DROP TABLE IF EXISTS table1;
|
|
|
|
|
|
|
|
CREATE TABLE table1 (lat Float64, lon Float64, resolution UInt8) ENGINE = Memory;
|
|
|
|
|
|
|
|
INSERT INTO table1 VALUES(55.77922738, 37.63098076, 15);
|
|
|
|
INSERT INTO table1 VALUES(55.76324100, 37.66018300, 15);
|
|
|
|
INSERT INTO table1 VALUES(55.72076200, 37.59813500, 15);
|
|
|
|
INSERT INTO table1 VALUES(55.72076201, 37.59813500, 15);
|
|
|
|
INSERT INTO table1 VALUES(55.72076200, 37.59813500, 14);
|
|
|
|
|
2019-06-30 20:39:23 +00:00
|
|
|
select geoToH3(37.63098076, 55.77922738, 15);
|
2022-02-13 06:58:48 +00:00
|
|
|
select geoToH3(37.63098076, 55.77922738, 24); -- { serverError 69 }
|
2019-06-30 20:39:23 +00:00
|
|
|
select geoToH3(lon, lat, resolution) from table1 order by lat, lon, resolution;
|
2022-02-13 06:58:48 +00:00
|
|
|
select geoToH3(lon, lat, resolution) AS k from table1 order by lat, lon, k;
|
|
|
|
select lat, lon, geoToH3(lon, lat, resolution) AS k from table1 order by lat, lon, k;
|
2019-06-30 20:39:23 +00:00
|
|
|
select geoToH3(lon, lat, resolution) AS k, count(*) from table1 group by k order by k;
|
2019-03-25 14:34:52 +00:00
|
|
|
|
|
|
|
DROP TABLE table1
|