

def test_warp_reproject_dst_crs_proj4(runner, tmpdir):
    proj4 = '+proj=longlat +ellps=WGS84 +datum=WGS84'
    srcname = 'tests/data/shade.tif'
    outputname = str(tmpdir.join('test.tif'))
    result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', proj4])
    assert (result.exit_code == 0)
    assert os.path.exists(outputname)
    with rasterio.open(outputname) as output:
        assert (output.crs == {
            'init': 'epsg:4326',
        })

dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_warp.py test_warp_reproject_dst_crs_proj4/original