i.ortho.transform
Computes a coordinate transformation based on the control points.
i.ortho.transform [-srxp] group=name [format=string [,string,...]] [coords=name] [--verbose] [--quiet] [--qq] [--ui]
Example:
i.ortho.transform group=name
grass.script.run_command("i.ortho.transform", group, format="fd,rd", coords=None, flags=None, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("i.ortho.transform", group="name")
Parameters
group=name [required]
Name of input imagery group
format=string [,string,...]
Output format
Allowed values: idx, src, dst, fwd, rev, fxy, rxy, fd, rd
Default: fd,rd
idx: point index
src: source coordinates
dst: destination coordinates
fwd: forward coordinates (destination)
rev: reverse coordinates (source)
fxy: forward coordinates difference (destination)
rxy: reverse coordinates difference (source)
fd: forward error (destination)
rd: reverse error (source)
coords=name
File containing coordinates to transform ("-" to read from stdin)
Local x,y,z coordinates to target east,north,height
-s
Display summary information
-r
Reverse transform of coords file or coeff. dump
Target east,north,height coordinates to local x,y,z
-x
Display transform matrix coefficients
-p
Enable panorama camera correction
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
group : str, required
Name of input imagery group
Used as: input, group, name
format : str | list[str], optional
Output format
Allowed values: idx, src, dst, fwd, rev, fxy, rxy, fd, rd
idx: point index
src: source coordinates
dst: destination coordinates
fwd: forward coordinates (destination)
rev: reverse coordinates (source)
fxy: forward coordinates difference (destination)
rxy: reverse coordinates difference (source)
fd: forward error (destination)
rd: reverse error (source)
Default: fd,rd
coords : str, optional
File containing coordinates to transform ("-" to read from stdin)
Local x,y,z coordinates to target east,north,height
Used as: input, file, name
flags : str, optional
Allowed values: s, r, x, p
s
Display summary information
r
Reverse transform of coords file or coeff. dump
Target east,north,height coordinates to local x,y,z
x
Display transform matrix coefficients
p
Enable panorama camera correction
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
i.ortho.transform is an utility to compute transformation based upon GCPs and output error measurements.
If coordinates are given with the input file option or fed from
stdin
, both the input and the output format is "x y z" with one
coordinate pair per line. Reverse transform is performed with the -r
flag.
The format option determines how control points are printed out. A summary on the control points can be printed with the -s flag. The summary includes maximum deviation observed when transforming GCPs and overall RMS. The format option is ignored when coordinates are given with the input file option.
NOTES
Ortho-transformation is a 2-step transformation. First, source coordinates are transformed to sensor coordinates, then sensor coordinates are transformed to target coordinates.
SEE ALSO
TODO
Update this document with x,y,z\<->E,N,H information
AUTHORS
Brian J. Buckley
Glynn Clements
Hamish Bowman
SOURCE CODE
Available at: i.ortho.transform source code
(history)
Latest change: Thursday May 08 14:35:40 2025 in commit 9528b1e