sql
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
-- 25690 cells covering full webmercator extent
|
||||
-- real 0m9.448s -- as of e0e76843f785a420c277a6fb2f762601570ffb98
|
||||
-- real 0m0.243s -- as of 50c487b83837e4d5216fcc19d637dd8db6baa44a
|
||||
|
||||
SELECT count(*) FROM (
|
||||
SELECT CDB_HexagonGrid(ST_MakeEnvelope(-20194051, -20194051, 20194051, 20194051), 156543) ) f;
|
||||
@@ -0,0 +1,16 @@
|
||||
-- Run psql with -tA switches and expect
|
||||
-- CDB_TransformToWebmercatorTest_expect
|
||||
select '1', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;LINESTRING(90 90, 0 80)'), 1));
|
||||
select '2', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;LINESTRING(90 90, 0 90)'), 1));
|
||||
select '3', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;POINT(0 90)'), 1));
|
||||
select '4', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;MULTIPOINT(10 3, 0 90, 0 4)'), 1));
|
||||
select '5', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;MULTIPOINT(10 3)'), 1));
|
||||
select '6', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;MULTILINESTRING((90 90, 0 90),(0 4, -4 5))'), 1));
|
||||
select '7', ST_AsEWKT(ST_SnapToGrid(CDB_TransformToWebmercator(
|
||||
'SRID=4326;POINT(5 3)'), 1));
|
||||
Reference in New Issue
Block a user