[SERVER-38076] Edges cross, but they definitely dont Created: 10/Nov/18  Updated: 14/Nov/18  Resolved: 14/Nov/18

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

Type: Bug Priority: Minor - P4
Reporter: Craig OConnor [X] Assignee: Kelsey Schubert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File 1.geojson     PNG File CrossingLines.png    
Operating System: ALL
Steps To Reproduce:

Marine.index({geometry: '2dsphere'});

Participants:

 Description   

error reports:

Edges 414 and 801 cross. Edge locations in degrees: [29.4636076, -70.4060898]-[30.0033680, -70.3002564] and [166.0663807, -60.5334624]-[19.6158366, -60.5334625]

 

$ mongo --version 403s
MongoDB shell version v4.0.3
git version: 7ea530946fa7880364d88c8d8b6026bbc9ffa48c
OpenSSL version: OpenSSL 1.0.2n 7 Dec 2017
allocator: tcmalloc
modules: none
build environment:
distmod: ubuntu1404
distarch: x86_64
target_arch: x86_64



 Comments   
Comment by Kelsey Schubert [ 14/Nov/18 ]

Hi CraigglesO,

Thanks for the report. The lines do cross as the shortest line in spherical geometry between [166.0663807, -60.5334624]-[19.6158366, -60.5334625] goes over Antarctica. Here's a picture of the two lines crossing above the C in Antarctica:

Kind regards,
Kelsey

Generated at Thu Feb 08 04:47:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.