Skip to content

Box.ofWSEN silently accepts latitude values outside the valid range #86

@tordanik

Description

@tordanik

Geodesk silently accepts Box.ofWSEN calls with nonsensical latitude values. Example:

Box.ofWSEN(-10, -100, 10, 100);

I would prefer to receive an IllegalArgumentException. Instead, the invalid parameter is just set to 0. In this example, this results in an empty bbox. In general, this can make the error harder to find (in my case, it was swapped latitude and longitude values).

Metadata

Metadata

Assignees

Labels

todoA feature that has been specified, but not yet implemented

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions