[SERVER-8122] make within, 2d, 2dplanar totally crs-coherent. Created: 09/Jan/13  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: hari.khalsa@10gen.com Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

As a guiding principle, the query and its geometry should determine the expected CRS. We will only convert WGS84Flat -> WGS84.

We don't convert legacy polygons or boxes to WGS84/s2.

Task list to ensure consistency:

  • Add $within + $centerSphere to matcher.
    • Query geometry is legacy centerSphere format. There is no GeoJSON 'sphere'
    • Matched geometry must be points in new/old, or any geojson.
    • What do we do if we try to match geometry that is a legacy polygon or box? Error.
  • Add $within + $geometry to matcher.
    • Query geometry is any valid GeoJSON format.
    • Matched geometry can be either GeoJSON or legacy points.
    • Error if matched geometry is legacy polygon or box.

Generated at Thu Feb 08 03:16:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.