title: MongoDB / Geojson $geointersects problems
body: <p>It's been now 8 hours I'm trying to deal with a MongoDB Geojson $geoIntersects issue :</p>
  
  <p>It's working very well when my polygon is a square, or a rectangle,
  but I'm unable to get some results from a $geoIntersects request when my Polygon has crossing vertices, like this example :</p>
  
  <p><a href="https://i.stack.imgur.com/kWDcV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kWDcV.png" alt="enter image description here"></a></p>
  
  <p>(Image from (<a href="https://geoman.io/geojson-editor" rel="nofollow noreferrer">https://geoman.io/geojson-editor</a>))</p>
  
  <p>The polygon data looks like this :</p>
  
  <pre><code>{
          "type": "Feature",
          "properties": {
              "shape": "Polygon"
          },
          "geometry": {
              "type": "Polygon",
              "coordinates": [
                  [
                      [-1.565584, 47.226352],
                      [-1.564704, 47.226927],
                      [-1.564093, 47.225616],
                      [-1.563138, 47.226374],
                      [-1.565584, 47.226352]
                  ]
              ]
          },
          "id": "dda54a42-090b-46ea-9dd0-fdda6d240f90"
      }
  </code></pre>
  
  <p>For this example, I need to know if the Polygon includes my Point coordinates.
  This is my simple query :</p>
  
  <pre><code>db.geojsondatas.find({
      geometry: {
          $geoIntersects: {
              $geometry: {
                  type: "Point",
                  coordinates: [ -1.555638, 47.216245 ]
              }
          }
      }
  });
  </code></pre>
  
  <p>Anyone knows if there is a way to do this ?</p>
  
  <p>Thanks by advance.</p>