Skip to content

Return an error for /watershed API requests that fall on grid boundaries. #162

@corviday

Description

@corviday

In the case where someone supplies a point to the watershed API that lies exactly on the boundary between cells, such as a whole number latitude or longitude, it's not clear which grid cell to use as the mouth of the watershed, which can make quite a large difference to the result.

@jameshiebert suggests a solution:

I'd propose that a simple resolution to this issue would consist of not allowing requests on cell boundaries. E.g. if the incoming request coordinate falls on a cell boundary, respond with an HTTP 400 Bad Request error (and an explanatory message).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions