...
Hi Team trying to run the query to fetch all the geometries within given polygon, it does not work. it works for small size polygon though. Please give some insight. db.table.find( { "GeJsonGeometry._v" : { $geoWithin: { $geometry: { type: "Polygon", coordinates: [ [ [ -180, -46.6038995 ], [ 180, -46.6038995 ], [ 180, 78.7886584 ], [ -180, 78.7886584 ], [ -180, -46.6038995 ] ] ] } } } } )
JIRAUSER1265262 commented on Wed, 5 Apr 2023 19:36:11 +0000: Glad to hear it! I'll close this ticket. JIRAUSER1273343 commented on Wed, 5 Apr 2023 06:10:39 +0000: Thanks Chris, I wan able to overcome the issue after adding the crs: { type: "name", properties: \{ name: "urn:x-mongodb:crs:strictwinding:EPSG:4326" } } tag as my polygon was crossing two hemisphere. JIRAUSER1265262 commented on Tue, 4 Apr 2023 16:47:00 +0000: Thanks for your report arghya.das@accionlabs.com, Can you provide additional information? Specifically I am interested in what examples work and don't work. Can you please create a clearer test that demonstrates your issue with initialized data? It sounds like you may be hitting the issue here https://www.mongodb.com/docs/manual/reference/operator/query/geoWithin/#degenerate-geometry but I can't ascertain from the information provided. Christopher
Click on a version to see all relevant bugs
MongoDB Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.