Home > database >  Add 2 dsphere index mongo, coordinates will be more than 6 decimal places rounded, lead to repeated
Add 2 dsphere index mongo, coordinates will be more than 6 decimal places rounded, lead to repeated

Time:09-22

2 dsphere index is as follows:
{
"GaodeRange" : "2 dsphere
"}


Coordinates are not rounded:
[118.071926779891, 36.8293934415749],
[118.071895506574, 36.824322011486],


Error:
Edges of 212 and 214 cross Edge locations in degrees: [118.0719268, 36.8293934] - [118.0718955, 36.8243220] and [118.0718620, 36.8243290] - [118.0722120, 36.8242560]

CodePudding user response:

The great god know how to deal with?
  • Related