              matches?)
 
            ;; normal two points
-           [-24.28,-12.76,10,10] [whole-world whole-world-poly polygon-with-holes normal-poly normal-brs]
+           [-24.28,-12.76,10,10] [whole-world west-hemi-poly1 west-hemi-poly2 east-hemi-poly1
+                                  polygon-with-holes normal-poly normal-brs]
 
            ;; normal multiple points
-           [-0.37,-14.07,4.75,1.27,25.13,-15.51] [whole-world whole-world-poly polygon-with-holes
+           [-0.37,-14.07,4.75,1.27,25.13,-15.51] [whole-world polygon-with-holes
+                                                  west-hemi-poly1 west-hemi-poly2 east-hemi-poly1
                                                   polygon-with-holes-cart normal-line-cart
                                                   normal-line normal-poly-cart]
            ;; across antimeridian
-           [-167.85,-9.08,171.69,43.24] [whole-world whole-world-poly across-am-br across-am-poly very-wide-cart]
+           [-167.85,-9.08,171.69,43.24] [whole-world across-am-br across-am-poly very-wide-cart
+                                         west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]
 
            ;; across north pole
-           [0 85, 180 85] [whole-world whole-world-poly north-pole on-np touches-np]
+           [0 85, 180 85] [whole-world north-pole on-np touches-np
+                           west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]
 
            ;; across north pole where cartesian polygon touches it
-           [-155 85, 25 85] [whole-world whole-world-poly north-pole on-np very-tall-cart]
+           [-155 85, 25 85] [whole-world north-pole on-np very-tall-cart
+                             west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]
 
            ;; across south pole
-           [0 -85, 180 -85] [whole-world whole-world-poly south-pole on-sp]
+           [0 -85, 180 -85] [whole-world south-pole on-sp
+                             west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]
 
            ;; across north pole where cartesian polygon touches it
-           [-155 -85, 25 -85] [whole-world whole-world-poly south-pole on-sp touches-sp very-tall-cart]))
+           [-155 -85, 25 -85] [whole-world south-pole on-sp touches-sp very-tall-cart
+                               west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]))
 
     (testing "point searches"
       (are [lon_lat items]

             matches?)

           ;; north pole
           [0 90] [whole-world whole-world-poly north-pole on-np touches-np]

           ;; south pole
           [0 -90] [whole-world whole-world-poly south-pole on-sp touches-sp]

           ;; in hole of polygon with a hole
           [4.83 1.06] [whole-world whole-world-poly]
           ;; in hole of polygon with a hole
           [1.67 5.43] [whole-world whole-world-poly]
           ;; and not in hole
           [1.95 3.36] [whole-world whole-world-poly polygon-with-holes]

           ;; in mbr
           [17.73 2.21] [whole-world whole-world-poly normal-brs]

           ;;matches exact point on polygon
           [-5.26 -2.59] [whole-world whole-world-poly polygon-with-holes]

           ;; Matches a granule point
           [10 22] [whole-world whole-world-poly normal-point wide-north-cart]

           [-154.821 37.84] [whole-world whole-world-poly very-wide-cart very-tall-cart]

           ;; Near but not inside the cartesian normal polygon
           ;; and also insid the polygon with holes (outside the holes)
           [-2.212,-12.44] [whole-world whole-world-poly polygon-with-holes-cart]
           [0.103,-15.911] [whole-world whole-world-poly polygon-with-holes-cart]
           ;; inside the cartesian normal polygon
           [2.185,-11.161] [whole-world whole-world-poly normal-poly-cart]

           ;; inside a hole in the cartesian polygon
           [4.496,-18.521] [whole-world whole-world-poly]

           ;; point on geodetic line
           [20.0 -10.437310310746927] [whole-world whole-world-poly normal-line]
           ;; point on cartesian line
           [20.0 -13.496157710960231] [whole-world whole-world-poly normal-line-cart]))

    (testing "bounding rectangle searches"
      (are [wnes items]

               (println "Expected:" (pr-str (map :entry-title items)))
               (println "Actual:" (pr-str (map :name (:refs refs)))))
             result)
           :polygon [20.16,-13.7, 21.64,12.43, 12.47,11.84, -22.57,7.06,20.16,-13.7]
           [whole-world normal-poly normal-brs polygon-with-holes normal-line normal-line-cart
            west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]

           :box [23.59,-4,25.56,-15.47] [whole-world normal-line-cart east-hemi-poly1]
           :point [17.73 2.21] [whole-world normal-brs east-hemi-poly1]
           :line [-0.37,-14.07,4.75,1.27,25.13,-15.51]
           [whole-world polygon-with-holes polygon-with-holes-cart normal-line-cart normal-line
            normal-poly-cart  west-hemi-poly1 west-hemi-poly2 east-hemi-poly1]))))


