MongoDB plugin should handle Envelopes with coordinates out of MongoDB bounds

Description

By design MongoDB does not allow intersect queries with geometries having coordinates out of the bounding box -180,-90,180,90.
(See the "Important" section from their doc on geoIntersects: https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/)

In GeoServer, this becomes problematic in multiple scenarios, where the Envelope becomes "out of bounds".
GeoServer returns the following error from MongoDB: "longitude/latitude is out of bounds"

Other Store kinds do not mind about an "out of bounds" Envelopes.

Environment

None

Status

Assignee

Unassigned

Reporter

Christophe Lagardère

Triage

None

Components

Affects versions

18.1

Priority

Medium
Configure