xfailing test for identity matrix reproject

This commit is contained in:
Matthew Perry 2016-06-02 13:21:33 -04:00
parent 4006414d75
commit cb81e55cdc

View File

@ -615,3 +615,25 @@ def test_reproject_crs_none():
dst_transform=dstaff,
dst_crs=dstcrs,
resampling=Resampling.nearest)
@pytest.mark.xfail
def test_reproject_identity():
"""Reproject with an identity matrix."""
# note the affines are both positive e, one is identity
src = np.random.random(25).reshape((1, 5, 5))
srcaff = Affine(1.0, 0.0, 0.0, 0.0, 1.0, 0.0) # Identity
srccrs = {'init': 'epsg:3857'}
dst = np.empty(shape=(1, 10, 10))
dstaff = Affine(0.5, 0.0, 0.0, 0.0, 0.5, 0.0)
dstcrs = {'init': 'epsg:3857'}
with Env():
reproject(
src, dst,
src_transform=srcaff,
src_crs=srccrs,
dst_transform=dstaff,
dst_crs=dstcrs,
resampling=Resampling.nearest)