From 234eba764d7fea67b597d8f9ed5225e651f4a945 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Mon, 26 Mar 2018 23:36:15 +0200 Subject: Validate that units match between pipeline steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As suggested in [0], steps in a pipeline are now checked for compliance. If the right side units in step n differ from the left side units in step n+1 the pipeline can't be constructed and an error is raised. [0] https://lists.osgeo.org/pipermail/grass-dev/2018-March/088123.html --- docs/source/operations/pipeline.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docs/source') diff --git a/docs/source/operations/pipeline.rst b/docs/source/operations/pipeline.rst index d7694041..abe98776 100644 --- a/docs/source/operations/pipeline.rst +++ b/docs/source/operations/pipeline.rst @@ -95,4 +95,17 @@ In the following the GRS80 ellipsoid will be applied to all steps. +step +proj=cart +inv +step +proj=merc +**5. Units of operations must match between steps.** + +.. versionadded:: 5.1.0 + +The output units of step *n* must match the expected input unit of step *n+1*. E.g., you can't +pass an operation that outputs projected coordinates to an operation that expects angular units +(degrees). An example of such a unit mismatch is displayed below. + +:: + + +proj=pipeline + +step +proj=merc # Mercator outputs projected coordinates + +step +proj=robin # The Robinson projection expects angular input -- cgit v1.2.3