aboutsummaryrefslogtreecommitdiff
path: root/docs/source/apps
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-04-19 17:30:24 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-04-21 23:05:59 +0200
commit47458427c9a8e1bded36d5eb803153adf6ace0d2 (patch)
tree5b492954020b6b23cfb98312b5ff1df2dca04031 /docs/source/apps
parent5142bfbf72f859832df3da691dc3e7488839b53c (diff)
downloadPROJ-47458427c9a8e1bded36d5eb803153adf6ace0d2.tar.gz
PROJ-47458427c9a8e1bded36d5eb803153adf6ace0d2.zip
gie: implement a strict mode with <gie-strict> </gie-strict> (fixes #2158)
In that mode: * All non-comment/decoration lines must start with a valid tag * Commands split on several lines should be terminated with " \"
Diffstat (limited to 'docs/source/apps')
-rw-r--r--docs/source/apps/gie.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/source/apps/gie.rst b/docs/source/apps/gie.rst
index af6f528e..a1c7cb56 100644
--- a/docs/source/apps/gie.rst
+++ b/docs/source/apps/gie.rst
@@ -324,6 +324,33 @@ gie command language
expect 0 110579.9
</gie>
+
+Strict mode
+***********
+
+.. versionadded:: 7.1
+
+A stricter variant of normal gie syntax can be used by wrapping gie commands
+between ``<gie-strict>`` and ``</gie-strict>``. In strict mode, comment lines
+must start with a sharp character. Unknown commands will be considered as an error.
+A command can still be split on several lines, but intermediate lines must
+end with the space character followed by backslash to mark the continuation.
+
+ .. code-block:: console
+
+ <gie-strict>
+ # This is a comment. The following line with multiple repeated characters too
+ -------------------------------------------------
+ # A command on several lines must use " \" continuation
+ operation proj=hgridshift +grids=nzgd2kgrid0005.gsb \
+ ellps=GRS80
+ tolerance 1 mm
+ ignore pjd_err_failed_to_load_grid
+ accept 172.999892181021551 -45.001620431954613
+ expect 173 -45
+ </gie-strict>
+
+
Background
**********