Example #1
0
 def test_point_in_polygon_latlon(self):
     # test for point in polygon across dateline
     x1 = -175.
     y1 = 50.
     poly1 = [(150., 60.), (-160., 60.), (-170., 45.), (170., 45.)]
     P1 = Polygon(1, poly1)
     self.assertTrue(P1.point_in_poly_latlon(x1, y1))
Example #2
0
 def test_point_in_polygon_latlon(self):
     # test for point in polygon across dateline
     x1 = -175.
     y1 = 50.
     poly1= [(150.,60.), (-160.,60.), (-170.,45.), (170.,45.)]
     P1 = Polygon(1, poly1)
     self.assertTrue(P1.point_in_poly_latlon(x1,y1))