[SERVER-10269] Can't extract geo keys from object, malformed geometry Created: 20/Jul/13 Updated: 10/Dec/14 Resolved: 13/Aug/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo, JavaScript |
| Affects Version/s: | 2.4.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | zhaol | Assignee: | Stennie Steneker (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Window7 32bit |
||
| Attachments: |
|
| Operating System: | Windows |
| Steps To Reproduce: | 1.insert a document has a Polygon column data |
| Participants: |
| Description |
|
I just attempt to insert a document which has a 'Polygon' column into a new collection named 'testSharp', after insert I want to add a 2dshpere index to the 'geom' column, error occured when I added the index, I'm not sure this is a bug? but when i try to modify the 'Polygon' to 'LineString', the error didn't occur again. |
| Comments |
| Comment by zhaol [ 13/Aug/13 ] |
|
Thank you very much,the reason is the value of attribute named "coodinates" is invalid,after modified to |
| Comment by Stennie Steneker (Inactive) [ 13/Aug/13 ] |
|
Hi, The original Polygon you describe was not closed so the geometry was invalid. For example, you could add an additional point [1.0,1.0] to create a valid GeoJSON polygon. A helpful tool to check validity is: http://geojsonlint.com/. I would also like to note that the SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-users group (http://groups.google.com/group/mongodb-user) or ask specific questions on Stack Overflow / ServerFault. Thanks, |