title: mongodb $geointersects not working
body: <p>I am trying to use <code>$geointersects</code> in <code>mongodb</code> to find the polygon in which the point is located.</p>
  
  <p>For that in <code>php</code> i created the test data:</p>
  
  <pre><code>$collection = $db-&gt;selectCollection('countries');
  $result = $collection-&gt;insertMany([
      [
          'c' =&gt; 'rus',
          'n' =&gt; 'Russia',
          'loc' =&gt; [
              "type" =&gt; "Polygon",
              "coordinates" =&gt; [
                  [-109.95117, 39.77477],
                  [-100.23926, 46.70974],
                  [-94.41608,  37.78902],
                  [-104.67541, 32.70375],
                  [-109.95117, 39.77477]
              ]
         ]
      ],[
          'c' =&gt; 'can',
          'n' =&gt; 'Canada',
          'loc' =&gt; [
              "type" =&gt; "Polygon",
              "coordinates" =&gt; [
                  [-100.15137, 46.83013],
                  [-84.31555,  47.89965],
                  [-82.39746,  37.78808],
                  [-94.28467,  37.8228 ],
                  [-100.15137, 46.83013]
              ]
         ]
      ]
  ]);
  </code></pre>
  
  <p>Result is:</p>
  
  <p><a href="https://i.stack.imgur.com/NfBkP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NfBkP.png" alt="enter image description here"></a></p>
  
  <p>Then in <code>Robomongo</code> I am making a select:</p>
  
  <blockquote>
    <p>db.getCollection('countries').find({"loc": { $geoIntersects:
    {$geometry: {"type": "Point", "coordinates": [ -88.0123388, 41.8333926
    ]}}}})</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/dDgnn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dDgnn.png" alt="enter image description here"></a></p>
  
  <p>And no rows are returned! What might be an issue here?</p>
  
  <p>Same in shell:</p>
  
  <p><a href="https://i.stack.imgur.com/WxXIV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WxXIV.png" alt="enter image description here"></a></p>
  
  <p>Here are the polygons I am testing against:</p>
  
  <p><a href="https://i.stack.imgur.com/OTOtQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OTOtQ.png" alt="enter image description here"></a></p>
  
  <p>Here is the point (41.8333926, -88.0123388) <a href="https://www.google.lv/maps/place/41%C2%B050&#39;00.2%22N+88%C2%B000&#39;44.4%22W/@39.5270188,-101.7789672,4.58z/data=!4m5!3m4!1s0x0:0x0!8m2!3d41.8333926!4d-88.0123388?hl=en" rel="nofollow noreferrer">location</a>:</p>
  
  <p><a href="https://i.stack.imgur.com/cyZZe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cyZZe.png" alt="enter image description here"></a></p>
  
  <p>Using the latest version of mongodb: 3.2.9.</p>