rio transform
Transform coordinates between coordinate reference systems.
JSON arrays of coordinates, interleaved, are read from stdin. Aarrays of transformed coordinates are written to stdout.
To transform a longitude, latitude point (EPSG:4326 is the default) to another coordinate system with 2 decimal places of output precision, do the following.
$ cat << EOF | rio transform –dst-crs EPSG:32618 –precision 2
> [-78.0 23.0]
> EOF
[192457.13, 2546667.68]
rio transform [OPTIONS] [INPUT]
Options
- --src-crs, --src_crs <src_crs>
Source CRS.
- --dst-crs, --dst_crs <dst_crs>
Destination CRS.
- --precision <precision>
Decimal precision of coordinates.
Arguments
- INPUT
Optional argument