Skip to content

Commit 5a5928e

Browse files
committedJul 19, 2012
WCS test server instructions
1 parent bf5d8d1 commit 5a5928e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
 

‎tests/testdata/raster/README.WCS

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
WCS test server installation
2+
----------------------------
3+
WCS test server is based on UMN MapServer running on qgis.org.
4+
5+
1. Install UMN MapServer (mapserver.org) version 6.0 or higher with WCS support (--with-wcs configure option if compiled from source)
6+
7+
2. Copy test data from qgis source tests/testdata/raster somewhere on server, for example to /var/www/data/test/1.9.0/tests/testdata/raster.
8+
9+
3. Edit WCS mapfile, for example /var/www/data/test/1.9.0/tests/testdata/raster/wcs.map and set SHAPEPATH to the path where data were copied, e.g.:
10+
SHAPEPATH "/var/www/data/test/1.9.0/tests/testdata/raster/"
11+
12+
4. Create script in cgi-bin dir where mapfile is specified, e.g. /usr/lib/cgi-bin/wcstest-1.9.0:
13+
14+
#! /bin/sh
15+
MS_MAPFILE=/var/www/data/test/1.9.0/tests/testdata/raster/wcs.map
16+
export MS_MAPFILE
17+
./mapserv
18+
19+
5. Configure Web server, for example if Apache is used, add rewrite rule to config file using /test/<version>/wcs path:
20+
21+
RewriteRule /test/1.9.0/wcs /cgi-bin/wcstest-1.9.0 [PT]
22+
23+
6. WARNING: If possible, don't change WCS server URL for released versions. If the server URL has to be changed for development and future versions, change also the variable TEST_SERVER_URL in tests/src/providers/CMakeLists.txt.

0 commit comments

Comments
 (0)
Please sign in to comment.