mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) pgmongo_1.14.md ### Description Add support for all GeoJson types with $centerSphere. Postgis returns true if 1 out of n points in the doc's GeoJson lies inside the query, but mongodb returns true only if all points are inside. So I added runtime check for all points. Also added a better way to iterate through WKB buffer without having to worry about segfault if traversal overflows (See IncrementBufferDataBySize in geospatial_query_operator) Related work items: #2928131