Beispiel #1
0
def test_23jul_failure():
    """ CCW line near Boston """
    # need to load data for this to work as a one
    load_conus_data(utc(2017, 7, 23))
    data = """40067377 40567433 41317429 42097381 42357259 42566991"""
    res = str2multipolygon(data)
    assert abs(res[0].area - 7.96724) < 0.0001
Beispiel #2
0
def test_issue295_geometryfail():
    """Test that we can make a geometry out of this."""
    # https://.../products/outlook/archive/2020/day1otlk_20200926_1300.html
    s = ("45048223 44728372 45018571 44818788 44798832 44758914 "
         "44679048 44759155 45509260 46349268 46749220 47199029 "
         "47608787 47258575")
    load_conus_data(utc(2020, 9, 26))
    res = str2multipolygon(s)
    assert abs(res[0].area - 21.09) < 0.001
Beispiel #3
0
def test_23jul_failure():
    ''' CCW line near Boston '''
    data = """40067377 40567433 41317429 42097381 42357259 42566991"""
    res = str2multipolygon(data)
    assert abs(res[0].area - 7.98403) < 0.0001
Beispiel #4
0
 def test_23jul_failure(self):
     ''' CCW line near Boston '''
     data = """40067377 40567433 41317429 42097381 42357259 42566991"""
     res = str2multipolygon(data)
     self.assertAlmostEqual(res[0].area, 7.98403, 5)
Beispiel #5
0
def test_23jul_failure():
    ''' CCW line near Boston '''
    data = """40067377 40567433 41317429 42097381 42357259 42566991"""
    res = str2multipolygon(data)
    assert abs(res[0].area - 7.98403) < 0.0001