@@ -157,8 +157,8 @@ shapefile layers or raster layers :
157157
158158 For other layer types, this syntax is invalid.
159159
160- Specifying which PROJ lookup files to use
161- -----------------------------------------
160+ Setting the location of the PROJ files
161+ --------------------------------------
162162
163163.. index::
164164 triple: MAP; CONFIG; PROJ_DATA
@@ -173,7 +173,7 @@ or `epsg` file for PROJ <6) :
1731731. Use MapServer's global configuration file, available since the MapServer 8.0
174174 release, to set the "PROJ_DATA" environment variable. The default name of
175175 the config file is `mapserver.conf` (for MS4W users, the file is `/ms4w/ms4w.conf`).
176- Your config file could contain a CONFIG section such as:
176+ Your config file could contain an `ENV` section such as:
177177
178178 ::
179179
@@ -185,9 +185,12 @@ or `epsg` file for PROJ <6) :
185185
186186 END #env
187187
188- END
188+ END #config
189189
190- 2. :ref:`MAP` `CONFIG` can be used to specify the location of PROJ files:
190+ .. seealso:: :ref:`config`
191+
192+ 2. Set the :ref:`MAP` object's `CONFIG` parameter in your mapfile to specify
193+ the location of PROJ files:
191194
192195 .. code-block:: mapfile
193196
@@ -198,8 +201,19 @@ or `epsg` file for PROJ <6) :
198201 END # PROJECTION
199202 ...
200203
201- It is important that `CONFIG "PROJ_DATA"` line comes before the
204+ It is important that the `CONFIG "PROJ_DATA"` line comes before the
202205 `PROJECTION` block.
206+
207+ 3. Set a system variable ("environment variable" on windows) called
208+ "PROJ_DATA" and point it to your proj directory.
209+
210+ 4. Set an environment variable through your web server. Apache has a
211+ `SetEnv` directive that can set environment variables. Add something
212+ like the following to your Apache *httpd.conf* file:
213+
214+ ::
215+
216+ SetEnv PROJ_DATA "/ms4w/share/proj"
203217
204218Important Notes
205219---------------
0 commit comments