> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_H3ToCenterChild

> Return the center descendant of an H3 cell at a requested resolution.

Returns the center child of an H3 cell at the requested resolution using H3's [cellToCenterChild(cell, resolution)](https://h3geo.org/docs/api/hierarchy#celltocenterchild).

The requested resolution must be between the input cell's resolution and 15, inclusive. An equal resolution returns the input cell. A lower resolution or a resolution outside this range raises an error. A null cell or resolution returns null.

The function returns a single center descendant at the target resolution, including when skipping multiple resolutions. For a pentagon input, the center child is also a pentagon.

## Signature

```sql theme={"system"}
ST_H3ToCenterChild(cell: Long, resolution: Int)
```

## Return type

`Long`

## Examples

Find the resolution 6 center child of a resolution 5 hexagon:

```sql theme={"system"}
SELECT ST_H3ToCenterChild(601041811137363967, 6)
```

Output:

```text theme={"system"}
605545409825210367
```

An equal resolution retains the input cell:

```sql theme={"system"}
SELECT ST_H3ToCenterChild(601041811137363967, 5)
```

Output:

```text theme={"system"}
601041811137363967
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.