aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-06-22 10:46:26 +0200
committerGitHub <noreply@github.com>2018-06-22 10:46:26 +0200
commit722f22dc585b37766153a4da37b9a829ab5b8ff7 (patch)
tree1073c02abb4040011903d66f88b7eabdf57a2b0f /docs/source
parent8ee389a6f44fb9ac0380ddbd3706b9354269d62f (diff)
parent5411bd30010b709a1482fa6a7073168f021dc627 (diff)
downloadPROJ-722f22dc585b37766153a4da37b9a829ab5b8ff7.tar.gz
PROJ-722f22dc585b37766153a4da37b9a829ab5b8ff7.zip
Merge pull request #1054 from rouault/add_angular_units_to_unitconvert
Add support for deg, rad and grad in unitconvert (fixes #1052), and document that it supports numeric factors (refs #1053)
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/operations/conversions/unitconvert.rst49
1 files changed, 38 insertions, 11 deletions
diff --git a/docs/source/operations/conversions/unitconvert.rst b/docs/source/operations/conversions/unitconvert.rst
index 6c8605fe..fab8026f 100644
--- a/docs/source/operations/conversions/unitconvert.rst
+++ b/docs/source/operations/conversions/unitconvert.rst
@@ -6,7 +6,7 @@ Unit conversion
.. versionadded:: 5.0.0
-Convert between various distance and time units.
+Convert between various distance, angular and time units.
+---------------------+--------------------------------------------------------+
| **Alias** | unitconvert |
@@ -41,24 +41,32 @@ expected to be in units of decimalyears. This can be fixed with `unitconvert`::
Parameters
################################################################################
-.. option:: +xy_in=<unit>
+.. option:: +xy_in=<unit> or <conversion_factor>
- Horizontal input units. See :ref:`distance_units` for a list of available
+ Horizontal input units. See :ref:`distance_units` and :ref:`angular_units`
+ for a list of available units. `<conversion_factor>` is the conversion factor
+ from the input unit to metre for linear units, or to radian for angular
units.
-.. option:: +xy_out=<unit>
+.. option:: +xy_out=<unit> or <conversion_factor>
- Horizontal output units. See :ref:`distance_units` for a list of available
+ Horizontal output units. See :ref:`distance_units` and :ref:`angular_units`
+ for a list of available units. `<conversion_factor>` is the conversion factor
+ from the output unit to metre for linear units, or to radian for angular
units.
-.. option:: +z_in=<unit>
+.. option:: +z_in=<unit> or <conversion_factor>
- Vertical output units. See :ref:`distance_units` for a list of available
+ Vertical output units. See :ref:`distance_units` and :ref:`angular_units`
+ for a list of available units. `<conversion_factor>` is the conversion factor
+ from the input unit to metre for linear units, or to radian for angular
units.
-.. option:: +z_out=<unit>
+.. option:: +z_out=<unit> or <conversion_factor>
- Vertical output units. See :ref:`distance_units` for a list of available
+ Vertical output units. See :ref:`distance_units` and :ref:`angular_units`
+ for a list of available units. `<conversion_factor>` is the conversion factor
+ from the output unit to metre for linear units, or to radian for angular
units.
.. option:: +t_in=<unit>
@@ -74,7 +82,7 @@ Parameters
Distance units
###############################################################################
-In the table below all distance units supported by PROJ is listed.
+In the table below all distance units supported by PROJ are listed.
The same list can also be produced on the command line with :program:`proj` or
:program:`cs2cs`, by adding the `-lu` flag when calling the utility.
@@ -124,12 +132,31 @@ The same list can also be produced on the command line with :program:`proj` or
| ind-ch | Indian Chain |
+----------+---------------------------------+
+.. _angular_units:
+
+Angular units
+###############################################################################
+
+.. versionadded:: 5.2.0
+
+In the table below all angular units supported by PROJ `unitconvert` are listed.
+
++----------+---------------------------------+
+| **Label**| **Name** |
++----------+---------------------------------+
+| deg | Degree |
++----------+---------------------------------+
+| grad | Grad |
++----------+---------------------------------+
+| rad | Radian |
++----------+---------------------------------+
+
.. _time_units:
Time units
###############################################################################
-In the table below all time units supported by PROJ is listed.
+In the table below all time units supported by PROJ are listed.
+--------------+-----------------------------+
| **label** | **Name** |