aboutsummaryrefslogtreecommitdiff
path: root/docs/source/usage
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2017-09-27 23:13:16 +0200
committerKristian Evers <kristianevers@gmail.com>2017-09-27 23:13:16 +0200
commitc9376a4700ca71605c27fa84e0ad49d043846158 (patch)
tree52653777dd8afb875860f42e77a47fb85261a366 /docs/source/usage
parent1f546602f1da800199ad298968154f2c71de6daf (diff)
downloadPROJ-c9376a4700ca71605c27fa84e0ad49d043846158.tar.gz
PROJ-c9376a4700ca71605c27fa84e0ad49d043846158.zip
Add section PROJ.4 environment variables.
Diffstat (limited to 'docs/source/usage')
-rw-r--r--docs/source/usage/environmentvars.rst43
-rw-r--r--docs/source/usage/index.rst1
2 files changed, 44 insertions, 0 deletions
diff --git a/docs/source/usage/environmentvars.rst b/docs/source/usage/environmentvars.rst
new file mode 100644
index 00000000..38cb46de
--- /dev/null
+++ b/docs/source/usage/environmentvars.rst
@@ -0,0 +1,43 @@
+.. _environmentvars:
+
+================================================================================
+Environment variables
+================================================================================
+
+PROJ.4 can be crontrolled by setting environment variables. Most users will
+have a use for the :envvar:`PROJ_LIB`.
+
+On UNIX systems environment variables can be set for a shell-session with::
+
+ $ export VAR="some variable"
+
+or it can be set for just one command line call::
+
+ $ VAR="some variable" ./cmd
+
+Environment variables on UNIX are usually removed with the ``unset`` command::
+
+ $ unset VAR
+
+On windows systems environment variables can be set in the command line with::
+
+ > set VAR="some variable"
+
+```VAR`` will be available for the entire session, unless it is unset. This is
+done by setting the variable with no content::
+
+ > set VAR=
+
+.. envvar:: PROJ_LIB
+
+ The location of PROJ.4 :doc:`resource files<resource_files>`.
+ It is only possible to specify a single library in :envvar:`PROJ_LIB`; e.g. it
+ does not behave like PATH. PROJ.4 is hardcoded to look for resource files
+ in other locations as well, amongst those are the users home directory,
+ ``/usr/share/proj`` and the current folder.
+
+.. envvar:: PROJ_DEBUG
+
+ Set the debug level of PROJ.4. The default debug level is zero, which results
+ in no debug output when using PROJ.4. A number from 1-3, whit 3 being the most
+ verbose setting.
diff --git a/docs/source/usage/index.rst b/docs/source/usage/index.rst
index 5979426a..81ea4b6b 100644
--- a/docs/source/usage/index.rst
+++ b/docs/source/usage/index.rst
@@ -17,5 +17,6 @@ command line applications or the C API that is a part of the software package.
projections
transformation
resource_files
+ environmentvars
operations/index