[Mapserver-users] WMS-GetMap problem in 4.0 (works in 3.6.6)
Frieso ter Haseborg
ter-haseborg at sf-datentechnik.de
Wed Aug 27 03:57:31 PDT 2003
Hi,
I'm just experimenting with WMS-getMap-requests.
I created two-mapFiles adapted from the "MapServer 3.5 tutorial": One
mapfile serves as WMS-server-configuration the other one as a
WMS-client. This configuration works fine with MapServer 3.6.6 but
failes in MapServer 4.0 with the following error:
msHTTPExecuteRequests(): HTTP request error. Can't open output file
../tmp/106197874319760.img.tmp.
What am I missing? Are there any changes to the mapfile-notation I
overlook? Has the temp-file-handling been changed?
I'm working with a single server, both map-files on the same machine;
configuration: Win2k/Apache 2.0.47 - MapServer 4.0 or MapServer 3.6.6.
My wms-map-file looks like this:
================================
NAME wms
EXTENT -97.5 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH "./"
WEB
IMAGEPATH "../tmp/"
IMAGEURL "/tmp/"
METADATA
WMS_TITLE "S3 Example 2"
WMS_ABSTRACT "Tutorial Section 3 Example 2"
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE
"http://wmstst/cgi-bin/mapserv.exe?map=../htdocs/wmstest/wms2.map"
WMS_SRS "EPSG:26915"
END
END
# LAYER DEFINITIONS
---------------------------------------------
LAYER # water features layer
NAME "1"
DATA hydrop_ugl
STATUS ON
TYPE POLYGON
metadata
"wms_title" "layer 1"
end
CLASSITEM "FEATURE"
CLASS
NAME "Bay/Estuarine"
EXPRESSION /Bay*/
COLOR 164 164 0
END
END
END # end of map file
My wms-client-file looks like this:
===================================
NAME client
EXTENT -97.5 41.619778 -82.122902 49.38562
SIZE 400 300
SHAPEPATH "./"
WEB
IMAGEPATH "../tmp/"
IMAGEURL "/tmp/"
METADATA
WMS_TITLE "S3 Example 2"
WMS_ABSTRACT "Tutorial Section 3 Example 2"
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE
"http://wmstst/cgi-bin/mapserv.exe?map=../htdocs/wmstest/client2.map"
WMS_SRS "EPSG:26915"
END
END
# LAYER DEFINITIONS
---------------------------------------------
LAYER
NAME "wms2"
TYPE RASTER
STATUS ON
CONNECTION
"http://wmstst/cgi-bin/mapserv.exe?map=../htdocs/wmstest/wms2.map&versio
n=1.1.0&layers=1"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:26915 EPSG:42101 EPSG:4269
EPSG:4326 EPSG:42304"
"wms_name" "1"
"wms_server_version" "1.1.0"
"wms_formatlist"
"image/gif,image/png,image/jpeg,image/wbmp"
"wms_format" "image/png"
END
END
LAYER # water features layer 2
NAME "2"
DATA hydrop_ugl
STATUS ON
TYPE POLYGON
CLASSITEM "FEATURE"
CLASS
NAME "Lakes/Reservoir"
EXPRESSION ('[FEATURE]' eq 'Lake' or '[FEATURE]' =
'Reservoir')
COLOR 64 64 255
END
END
END # end of map file
TIA,
Frieso ter Haseborg
- Software Development -
--
--------------------------------------------------
S&F Datentechnik GmbH&Co.KG
Reimersstr. 41b
26789 Leer, Germany
More information about the MapServer-users
mailing list