Skip to content

Commit d2b0ce7

Browse files
authored
[Backport 9.7] docs: add example for +proj=affine
1 parent e37c817 commit d2b0ce7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/source/operations/transformations/affine.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ This can be used to implement:
4949
be rotated to coincide with the axes of the target CRS, counter-clockwise
5050
being positive
5151

52+
Examples
53+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
54+
55+
The `+proj=affine` operation applies an affine transformation on coordinate values.
56+
Note that it does not perform any unit conversion and will accept
57+
coordinates whether they are angular or linear. Users must ensure that the
58+
values provided to the affine operation are expressed in the appropriate units
59+
for their intended purpose.
60+
61+
The affine operation can be used with the `cct` utility or as a step inside a
62+
PROJ pipeline.
63+
64+
Offsetting a the x-component of a coordinate by 1:
65+
66+
echo "1 2" | cct +proj=affine +xoff=1
67+
5268
Parameters
5369
################################################################################
5470

0 commit comments

Comments
 (0)