Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanSherwin committed Apr 3, 2024
1 parent e4861c4 commit bca0800
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions clouds/snowflake/modules/test/h3/H3_POLYFILL.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
})
Expand All @@ -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)

Expand Down Expand Up @@ -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)

})
})

0 comments on commit bca0800

Please sign in to comment.