示例#1
0
def test_pixel_at_point_just_northwest_of_southeast_corner_of_southeast_pixel_is_boottom_right_pixel(
        raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-118.001, 37.001) == (3, 4)
示例#2
0
def test_pixel_at_point_just_southeast_of_southeast_corner_of_southeast_pixel_is_outside_coverage(
        raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-117.999, 36.999) is None
示例#3
0
def test_pixel_at_point_just_northwest_of_northwest_corner_of_northwest_pixel_is_outside_coverage(
        raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-123.001, 45.001) is None
示例#4
0
def test_pixel_at_point_just_southeast_of_southwest_corner_of_northwest_pixel_is_0_0(
        raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-121.999, 42.999) == (1, 1)
示例#5
0
def test_pixel_at_point_just_northwest_of_southeast_corner_of_northwest_pixel_is_0_0(
        raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-122.001, 43.001) == (0, 0)
示例#6
0
def test_pixel_at_point_at_center_of_northwest_pixel_is_0_0(
        raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-122.5, 44) == (0, 0)
示例#7
0
def test_pixel_at_origin_is_0_0(raster_dataset: RasterDataset):
    assert raster_dataset.pixel_at_point(-123, 45) == (0, 0)