From 18ab7ef2e357e0c01464848a6911e754ebca471f Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 2 Dec 2020 17:12:54 +0100 Subject: cs2cs / proj_create_crs_to_crs_from_pj(): add a --authority switch to control where coordinate operations are looked for (fixes #2442) --- docs/source/development/reference/functions.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docs/source/development/reference/functions.rst') diff --git a/docs/source/development/reference/functions.rst b/docs/source/development/reference/functions.rst index cc29743c..32902916 100644 --- a/docs/source/development/reference/functions.rst +++ b/docs/source/development/reference/functions.rst @@ -182,7 +182,19 @@ paragraph for more details. This is the same as :c:func:`proj_create_crs_to_crs` except that the source and target CRS are passed as PJ* objects which must of the CRS variety. - :param `options`: should be set to NULL currently. + :param `options`: a list of NUL terminated options, or NULL. + + The list of supported options is: + + - AUTHORITY=name: to restrict the authority of coordinate operations + looked up in the database. When not specified, coordinate + ``operations from any authority`` will be searched, with the restrictions set + in the authority_to_authority_preference database table related to the authority + of the source/target CRS themselves. + If authority is set to "any", then coordinate operations from any authority will be searched + If authority is a non-empty string different of ``any``, then coordinate operations + will be searched only in that authority namespace (e.g ``EPSG``). + .. doxygenfunction:: proj_normalize_for_visualization :project: doxygen_api -- cgit v1.2.3 From 372b5b74804b1d279c952f4a7811ade3e5815a35 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 9 Dec 2020 19:28:13 +0100 Subject: Doc: fix return data type of proj_trans_array() --- docs/source/development/reference/functions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/source/development/reference/functions.rst') diff --git a/docs/source/development/reference/functions.rst b/docs/source/development/reference/functions.rst index 32902916..df452032 100644 --- a/docs/source/development/reference/functions.rst +++ b/docs/source/development/reference/functions.rst @@ -364,7 +364,7 @@ Coordinate transformation -.. c:function:: size_t proj_trans_array(PJ *P, PJ_DIRECTION direction, size_t n, PJ_COORD *coord) +.. c:function:: int proj_trans_array(PJ *P, PJ_DIRECTION direction, size_t n, PJ_COORD *coord) Batch transform an array of :c:type:`PJ_COORD`. @@ -374,7 +374,7 @@ Coordinate transformation :type `direction`: PJ_DIRECTION :param n: Number of coordinates in :c:data:`coord` :type n: `size_t` - :returns: :c:type:`size_t` 0 if all observations are transformed without error, otherwise returns error number + :returns: :c:type:`int` 0 if all observations are transformed without error, otherwise returns error number Error reporting -- cgit v1.2.3 From acab18920ec25ccbc2affe8bda924ff5f961d30c Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 11 Dec 2020 21:50:35 +0100 Subject: funtions.rst: fix sphynx syntax --- docs/source/development/reference/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/source/development/reference/functions.rst') diff --git a/docs/source/development/reference/functions.rst b/docs/source/development/reference/functions.rst index df452032..b37eacdd 100644 --- a/docs/source/development/reference/functions.rst +++ b/docs/source/development/reference/functions.rst @@ -374,7 +374,7 @@ Coordinate transformation :type `direction`: PJ_DIRECTION :param n: Number of coordinates in :c:data:`coord` :type n: `size_t` - :returns: :c:type:`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 Error reporting -- cgit v1.2.3