def test_rasterize_mismatched_src_crs(tmpdir, runner, basic_feature):

    coords = numpy.array(basic_feature['geometry']['coordinates']) * 100000
    basic_feature['geometry']['coordinates'] = coords.tolist()

    output = str(tmpdir.join('test.tif'))
    result = runner.invoke(
        main_group, [
            'rasterize', output, '--dimensions', DEFAULT_SHAPE[0],
            DEFAULT_SHAPE[1], '--src-crs', 'EPSG:4326'],
        input=json.dumps(basic_feature))

    assert result.exit_code == 2
    assert 'Bounds are beyond the valid extent for EPSG:4326' in result.output
A --src-crs that is geographic with coordinates that are outside
dataset/ETHPy150Open mapbox/rasterio/tests/test_rio_features.py/test_rasterize_mismatched_src_crs