[SERVER-11016] Should Multipolygons whose combined area contain another geometry be considered to $geoWithin contain the geometry? Created: 03/Oct/13  Updated: 14/Mar/17  Resolved: 07/Oct/13

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

Type: Question Priority: Major - P3
Reporter: Ian Bentley Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File bug_report.js    
Issue Links:
Documented
is documented by DOCS-9015 Should Multipolygons whose combined a... Closed
Related
Participants:

 Description   

The current behaviour is that the geometry is not geoWithin the multiPolygon.

This was non-obvious to me, but I can see arguments for either side.



 Comments   
Comment by Daniel Pasette (Inactive) [ 07/Oct/13 ]

MultiPolygons should not be treated as compositions of their parts by the query code.

It doesn't make sense to say that this Polygon:

[ [0,0], [0,1], [2,1], [2,0], [0,0] ] ]

Is contained in this MultiPolygon:

[ 
 [ [0,0], [0,1], [1,1], [1,0], [0,0] ], 
 [ [1,0], [1,1], [2,1], [2,0], [1,0] ] 
]

However, this needs to be clarified in the documentation.

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