docs for h3CellAreaM2

This commit is contained in:
bharatnc 2022-01-08 10:40:38 -08:00
parent bd6019cc95
commit 924cb5dede

View File

@ -808,4 +808,40 @@ Result:
└─────────┘
```
## h3CellAreaM2 {#h3cellaream2}
Returns the exact area of a specific cell in square meters corresponding to the given input H3 index.
**Syntax**
``` sql
h3CellAreaM2(index)
```
**Parameter**
- `index` — Hexagon index number. Type: [UInt64](../../../sql-reference/data-types/int-uint.md).
**Returned value**
- Cell area in square meters.
Type: [Float64](../../../sql-reference/data-types/float.md).
**Example**
Query:
``` sql
SELECT h3CellAreaM2(579205133326352383) AS area;
```
Result:
``` text
┌───────────────area─┐
│ 4106166334463.9233 │
└────────────────────┘
```
[Original article](https://clickhouse.com/docs/en/sql-reference/functions/geo/h3) <!--hide-->