@@ -157,8 +157,8 @@ shapefile layers or raster layers :
157
157
158
158
For other layer types, this syntax is invalid.
159
159
160
- Specifying which PROJ lookup files to use
161
- -----------------------------------------
160
+ Setting the location of the PROJ files
161
+ --------------------------------------
162
162
163
163
.. index::
164
164
triple: MAP; CONFIG; PROJ_DATA
@@ -173,7 +173,7 @@ or `epsg` file for PROJ <6) :
173
173
1. Use MapServer's global configuration file, available since the MapServer 8.0
174
174
release, to set the "PROJ_DATA" environment variable. The default name of
175
175
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:
177
177
178
178
::
179
179
@@ -185,9 +185,12 @@ or `epsg` file for PROJ <6) :
185
185
186
186
END #env
187
187
188
- END
188
+ END #config
189
189
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:
191
194
192
195
.. code-block:: mapfile
193
196
@@ -198,8 +201,19 @@ or `epsg` file for PROJ <6) :
198
201
END # PROJECTION
199
202
...
200
203
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
202
205
`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"
203
217
204
218
Important Notes
205
219
---------------
0 commit comments