Skip to content

Commit

Permalink
update PROJ_DATA steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed Dec 14, 2024
1 parent e5d4e32 commit ca3b515
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 12 deletions.
14 changes: 8 additions & 6 deletions en/errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ There are a few options available if you need to set the `proj.db` location:
1. Use MapServer's global configuration file, available since the MapServer 8.0
release, to set the "PROJ_DATA" environment variable. The default name of
the config file is `mapserver.conf` (for MS4W users, the file is `/ms4w/ms4w.conf`).
Your config file could contain a CONFIG section such as:
Your config file could contain an `ENV` section such as:

::

Expand All @@ -277,12 +277,11 @@ There are a few options available if you need to set the `proj.db` location:

END #env

END

2. Set a system variable ("environment variable" on windows) called
"PROJ_DATA" and point it to your proj directory.
END #config

.. seealso:: :ref:`config`

3. Use the mapfile parameter CONFIG to force the location of the `proj.db`
2. Use the mapfile parameter CONFIG to force the location of the `proj.db`
file. This parameter is specified at the MAP level

.. seealso::
Expand All @@ -295,6 +294,9 @@ There are a few options available if you need to set the `proj.db` location:
CONFIG "PROJ_DATA" "/ms4w/share/proj"
...
END

3. Set a system variable ("environment variable" on windows) called
"PROJ_DATA" and point it to your proj directory.

4. Set an environment variable through your web server. Apache has a
SetEnv directive that can set environment variables. Add something
Expand Down
26 changes: 20 additions & 6 deletions en/mapfile/projection.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ shapefile layers or raster layers :

For other layer types, this syntax is invalid.

Specifying which PROJ lookup files to use
-----------------------------------------
Setting the location of the PROJ files
--------------------------------------

.. index::
triple: MAP; CONFIG; PROJ_DATA
Expand All @@ -173,7 +173,7 @@ or `epsg` file for PROJ <6) :
1. Use MapServer's global configuration file, available since the MapServer 8.0
release, to set the "PROJ_DATA" environment variable. The default name of
the config file is `mapserver.conf` (for MS4W users, the file is `/ms4w/ms4w.conf`).
Your config file could contain a CONFIG section such as:
Your config file could contain an `ENV` section such as:

::

Expand All @@ -185,9 +185,12 @@ or `epsg` file for PROJ <6) :

END #env

END
END #config

2. :ref:`MAP` `CONFIG` can be used to specify the location of PROJ files:
.. seealso:: :ref:`config`

2. Set the :ref:`MAP` object's `CONFIG` parameter in your mapfile to specify
the location of PROJ files:

.. code-block:: mapfile

Expand All @@ -198,8 +201,19 @@ or `epsg` file for PROJ <6) :
END # PROJECTION
...

It is important that `CONFIG "PROJ_DATA"` line comes before the
It is important that the `CONFIG "PROJ_DATA"` line comes before the
`PROJECTION` block.

3. Set a system variable ("environment variable" on windows) called
"PROJ_DATA" and point it to your proj directory.

4. Set an environment variable through your web server. Apache has a
`SetEnv` directive that can set environment variables. Add something
like the following to your Apache *httpd.conf* file:

::

SetEnv PROJ_DATA "/ms4w/share/proj"

Important Notes
---------------
Expand Down

0 comments on commit ca3b515

Please sign in to comment.