mirror of
https://github.com/rasterio/rasterio.git
synced 2026-02-01 14:34:43 +00:00
xfailing test for identity matrix reproject
This commit is contained in:
parent
4006414d75
commit
cb81e55cdc
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user