[Mapserver-users] WMS Client on IIS with MS_MAPFILE variable problem
Arnulf Christl CCGIS
arnulf.christl at ccgis.de
Fri Aug 1 03:30:09 PDT 2003
Hi,
doing the same thing as Sean Gillies suggested we do it another way
technically. One of our customers did have some problems using UMN MapServer
as a cascading server bescause it will "hang" until the CGI timout is
reached whenever any one of the cascaded servers will not answer or will
only answer retarded (a basic problem of the used CGI technique). Therefore
we use a D-HTML client suite which queries all WMS individually (without
showing the map file or the servers IP because they are wrapped in a
*virtual* project) and shows their map whenever the server has finished
drawing it. The problem of a missing *layer* (WMS) is then reduced to the
inconvenience of it not appearing in the map instead of a *hanging* system.
We are currently preparing to *free* this software licensed with the GNU GPL
(up to know we sold it as a proprietary product). We hope to be able to
publish it next week. We will notify this userlist when it finally will be
ready for download.
Daniels suggestion of *cloning* MapServers may also be a very interesting
alternative we have not tought about yet.
Best regards,
Arnulf.
-----Ursprungliche Nachricht-----
Von: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]Im Auftrag von David
Graham
Gesendet: Donnerstag, 31. Juli 2003 17:36
An: mapserver-users at lists.gis.umn.edu
Betreff: [Mapserver-users] WMS Client on IIS with MS_MAPFILE variable
problem
Hi everyone:
Here is a tricky one, perhaps someone has solved this problem. I am no
IIS expert, so there may yet be a simple solution to this.
We have some WMS serviers running on Linux and they work fine. I have
hidden the map file with a shell script as suggested in the WMS Server
documentation.
[root at commerce1 cgi-bin]# more i3_demo
#! /bin/sh
MS_MAPFILE=/var/www/wms.i3.com/mapfiles/i3demo.map
export MS_MAPFILE
/var/www/wms.i3.com/bin/mapserv3.7
And it works great.
I now need to perform the same functionality on Windows 2000 using IIS.
I searched around to see if I could set an environment variable to be
associated with a given script(exe) but could not find a reference or
dialog box to set anything.
I then tried windows scripting. I used cscript.exe to execute the
following jscript script.
[dave at solar dave]$ more i3image.js
var WshShell = WScript.CreateObject("WScript.Shell");
var WshSysEnv = WshShell.Environment("SYSTEM");
WshSysEnv.Item( "MS_MAPFILE" ) =
"N:\\wms_data\\mapfiles\\wms1\\i3_Imagery_wms_service.map";
WshShell.Run( "C:\\Inetpub\\wwwroot\\wms\\wmsserver.exe", 0, true );
Then I set the IIS to map an empty file I labled wms.i3image to
C:\WINNT\cscritpt //Nologo <pathto>\i3image.js
After setting up some permissions, this executed but I have no results.
The problem is that the script spawns a new shell and send the output to
that shell which is then not related back to IIS.
It also accured to me that the new shell might not even have the
inherited the CGI environment, but I have not tested that either.
So my question is has anyone cracked this problem? I know I could
probably do it in perl or python, but I would rather avoid putting
another package on the system just for a script this small. This is
supposed to be the first in a bank of machines that will run only
Mapserver WMS services with no other applications installed. The idea
is to minimize the amount of software and thus reduce the degredation of
the Windows system.
By the way Windows is a prerequisit since we will be serving up a lot of
data that is compressed in ECW format.
So if anyone can give me suggestions on how to make this work with
Windows 2000 provided technology I would greatly apreaciate it.
Thanks
Dave Graham
--
David W. Graham
Director of Geospatial Applications Development
information integration and imaging, LLC
201 Linden St, Third Floor
Fort Collins, CO 80524
(970) 482-4400
dgraham at i3.com
http://www.i3.com
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list