From bca08005f7ffb26740168db5ab421aed7826ee73 Mon Sep 17 00:00:00 2001 From: Dean Sherwin Date: Thu, 4 Apr 2024 00:22:08 +0200 Subject: [PATCH] tmp --- clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js b/clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js index 9fff6e8d4..a04d7b958 100644 --- a/clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js +++ b/clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js @@ -232,12 +232,10 @@ test('Should support POLYGON Geographies over 180 degrees wide', async () => { expect(rows[0].CELL_COUNT).toEqual(56) query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'contains')) as cell_count` - console.log(query) rows = await runQuery(query); expect(rows[0].CELL_COUNT).toEqual(32) query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'intersects')) as cell_count` - console.log(query) rows = await runQuery(query); expect(rows[0].CELL_COUNT).toEqual(76) @@ -249,15 +247,12 @@ test('Should support MULTIPOLYGON Geographies over 180 degrees wide', async () = let query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'center')) as cell_count` //let rows = await runQuery(query); //expect(rows[0].CELL_COUNT).toEqual(0) - console.log(query) query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'contains')) as cell_count` - console.log(query) //rows = await runQuery(query); //expect(rows[0].CELL_COUNT).toEqual(0) query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'intersects')) as cell_count` - console.log(query) //rows = await runQuery(query); //expect(rows[0].CELL_COUNT).toEqual(0) }) @@ -268,15 +263,12 @@ test('Should support GEOMETRYCOLLECTION Geographies over 180 degrees wide', asyn let query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'center')) as cell_count` //let rows = await runQuery(query); //expect(rows[0].CELL_COUNT).toEqual(0) - console.log(query) query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'contains')) as cell_count` - console.log(query) //rows = await runQuery(query); //expect(rows[0].CELL_COUNT).toEqual(0) query = `SELECT ARRAY_SIZE(H3_POLYFILL(TO_GEOGRAPHY('${polygonWkt}'), 0, 'intersects')) as cell_count` - console.log(query) //rows = await runQuery(query); //expect(rows[0].CELL_COUNT).toEqual(0) @@ -312,4 +304,4 @@ test('Should return only the cell id for the cell boundary/polygon at the same r let rows = await runQuery(query); expect(rows[0].CELL_COUNT).toEqual(1) -}) \ No newline at end of file +})