Skip to content

S2 'level' 0 should be allowed #337

@francois-baptiste

Description

@francois-baptiste

Describe the bug
S2 'level' 0 should be allowed

To Reproduce
Steps to reproduce the behavior:

SELECT `carto-os.carto.S2_FROMLONGLAT`(0, 0, 0);
-- Error: 'level' is not a number between 1 and 30 (but it should be)

Expected behavior

SELECT `carto-os.carto.S2_FROMLONGLAT`(0, 0, 0);
-- Returns 1

Additional context
S2 Cell Statistics

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