Skip to content

Commit ca3b515

Browse files
committed
update PROJ_DATA steps
1 parent e5d4e32 commit ca3b515

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

en/errors.txt

+8-6
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ There are a few options available if you need to set the `proj.db` location:
265265
1. Use MapServer's global configuration file, available since the MapServer 8.0
266266
release, to set the "PROJ_DATA" environment variable. The default name of
267267
the config file is `mapserver.conf` (for MS4W users, the file is `/ms4w/ms4w.conf`).
268-
Your config file could contain a CONFIG section such as:
268+
Your config file could contain an `ENV` section such as:
269269

270270
::
271271

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

278278
END #env
279279

280-
END
281-
282-
2. Set a system variable ("environment variable" on windows) called
283-
"PROJ_DATA" and point it to your proj directory.
280+
END #config
281+
282+
.. seealso:: :ref:`config`
284283

285-
3. Use the mapfile parameter CONFIG to force the location of the `proj.db`
284+
2. Use the mapfile parameter CONFIG to force the location of the `proj.db`
286285
file. This parameter is specified at the MAP level
287286

288287
.. seealso::
@@ -295,6 +294,9 @@ There are a few options available if you need to set the `proj.db` location:
295294
CONFIG "PROJ_DATA" "/ms4w/share/proj"
296295
...
297296
END
297+
298+
3. Set a system variable ("environment variable" on windows) called
299+
"PROJ_DATA" and point it to your proj directory.
298300

299301
4. Set an environment variable through your web server. Apache has a
300302
SetEnv directive that can set environment variables. Add something

en/mapfile/projection.txt

+20-6
Original file line numberDiff line numberDiff line change
@@ -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) :
173173
1. 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

204218
Important Notes
205219
---------------

0 commit comments

Comments
 (0)