Skip to content

H3_POLYFILL returns empty list at some H3 resolutions for the same geometry (Postgres) #508

@bkanuka

Description

@bkanuka

I have a come across a couple times when H3_POLYFILL does not produce results. For example:

SELECT carto.H3_POLYFILL(ST_Transform(ST_TileEnvelope(1, 0, 0), 4326), 2, 'center');  -- empty

however, the same geometry works with different H3 resolutions. For example, these 2 produce valid results:

SELECT carto.H3_POLYFILL(ST_Transform(ST_TileEnvelope(1, 0, 0), 4326), 1, 'center'); -- valid
SELECT carto.H3_POLYFILL(ST_Transform(ST_TileEnvelope(1, 0, 0), 4326), 3, 'center'); -- valid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions