[SERVER-13857] WriteConcern detected an error 'insertDocument :: caused by :: 16755 Can't extract geo keys from object, malformed geometry? Created: 07/May/14  Updated: 10/Dec/14  Resolved: 07/May/14

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

Type: Bug Priority: Major - P3
Reporter: ldsenow Assignee: Thomas Rueckstiess
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File Capture2222.JPG     Text File geo_json.txt    
Issue Links:
Related
is related to DOCS-3362 Make it clearer that single ring poly... Closed
is related to SERVER-11395 Cannot create 2dsphere index on GeoJS... Closed
Operating System: Windows
Participants:

 Description   

I have a Polygon which is not a simple Polygon (it has overlaps, no interior rings and it is valid).
I am trying to insert this to MongoDB. Unfortunately, it is not supported.
I hope MongoDB can keep improving the supported Geo types like other SQL servers. I have been cleaning up, buffering and reducing my Geo data in the MS SQL server in order to import them into MongoDB.

Please find the attachments.



 Comments   
Comment by Thomas Rueckstiess [ 07/May/14 ]

Hi,

From the image you attached it looks like the polygon is self-intersecting, which is not a valid Polygon definition in MongoDB. This is documented on the following pages

The latter page leaves some room for interpretation as the rule is only stated for polygons with "multiple rings". The same applies for a single exterior ring though. I will make a request to improve the documentation and make this clearer.

Thanks,
Thomas

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