Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasterio test failure #3573

Closed
dcherian opened this issue Nov 25, 2019 · 1 comment
Closed

rasterio test failure #3573

dcherian opened this issue Nov 25, 2019 · 1 comment

Comments

@dcherian
Copy link
Contributor

version

rasterio                  1.1.1            py36h900e953_0    conda-forge
=================================== FAILURES ===================================
________________________ TestRasterio.test_rasterio_vrt ________________________

self = <xarray.tests.test_backends.TestRasterio object at 0x7fc8355c8f60>

    def test_rasterio_vrt(self):
        import rasterio
    
        # tmp_file default crs is UTM: CRS({'init': 'epsg:32618'}
        with create_tmp_geotiff() as (tmp_file, expected):
            with rasterio.open(tmp_file) as src:
                with rasterio.vrt.WarpedVRT(src, crs="epsg:4326") as vrt:
                    expected_shape = (vrt.width, vrt.height)
                    expected_crs = vrt.crs
                    expected_res = vrt.res
                    # Value of single pixel in center of image
                    lon, lat = vrt.xy(vrt.width // 2, vrt.height // 2)
>                   expected_val = next(vrt.sample([(lon, lat)]))

xarray/tests/test_backends.py:3966: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/xarray-tests/lib/python3.6/site-packages/rasterio/sample.py:43: in sample_gen
    data = read(indexes, window=window, masked=masked, boundless=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   ValueError: WarpedVRT does not permit boundless reads

rasterio/_warp.pyx:978: ValueError
@keewis keewis mentioned this issue Nov 27, 2019
1 task
@keewis
Copy link
Collaborator

keewis commented Nov 27, 2019

I'm fairly certain this is rasterio/rasterio#1833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants