diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-12-15 01:12:58 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-12-15 17:24:54 +0100 |
| commit | 1d803550e7059729cf2734fc6190993e8b8404bf (patch) | |
| tree | 9ead2265d639388da39ad52aa88cd9861b508831 /docs | |
| parent | 2abc0aaf3a03493aaa3f940e1d420d8d9a7b804f (diff) | |
| download | PROJ-1d803550e7059729cf2734fc6190993e8b8404bf.tar.gz PROJ-1d803550e7059729cf2734fc6190993e8b8404bf.zip | |
proj_trans_array(): make it transform all coordinates even when an error occurs
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/development/reference/functions.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/source/development/reference/functions.rst b/docs/source/development/reference/functions.rst index 5b559d55..08b3e669 100644 --- a/docs/source/development/reference/functions.rst +++ b/docs/source/development/reference/functions.rst @@ -368,13 +368,22 @@ Coordinate transformation Batch transform an array of :c:type:`PJ_COORD`. + Performs transformation on all points, even if errors occur on some points + (new to 8.0. Previous versions would exit early in case of failure on a given point) + + Individual points that fail to transform will have their components set to + ``HUGE_VAL`` + :param P: Transformation object :type P: :c:type:`PJ` * :param `direction`: Transformation direction. :type `direction`: PJ_DIRECTION :param n: Number of coordinates in :c:data:`coord` :type n: `size_t` - :returns: `int` 0 if all observations are transformed without error, otherwise returns error number + :returns: `int` 0 if all observations are transformed without error, otherwise returns error number. + This error number will be a precise error number if all coordinates that fail to transform + for the same reason, or a generic error code if they fail for different + reasons. Error reporting |
