File: test_rio_transform.py

package info (click to toggle)
rasterio 1.4.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,760 kB
  • sloc: python: 22,520; makefile: 275; sh: 164; xml: 29
file content (11 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from rasterio.rio.main import main_group


def test_transform(runner):
    """Coordinates are transformed."""
    result = runner.invoke(
        main_group,
        ["transform", "--dst-crs=EPSG:32618", "--precision=2"],
        input="[-78.0, 23.0]",
    )
    assert result.output.rstrip("\n") == "[192457.13, 2546667.68]"