MapTools.org

[maplab-users] WMS resources

Paul Spencer pgs@magma.ca
Fri, 01 Nov 2002 14:10:25 -0500
Scott, I think you can use a request like:

http://server/cgi-bin/mapserv.exe?map=/path/to/map

and append the appropriate wms parameters such as service, version, 
request etc to get layers out of a mapfile using wms.  I suspect that 
you could construct a php script mymap.php uses the open() function to 
open the url to the mapserv cgi with a hard-coded map path and appended 
parameters, then return the result.  This would avoid the most obvious 
security problems.  You could probably even create a generic php script 
that did this and took a map name as a parameter.

Not sure if this would work, but we have to do something very similar 
for one of our clients in the next couple of weeks, if we find a 
solution before you, I'd be happy to pass it on.

Cheers,

Paul

Tweedy, Scott wrote:
> I am using an IIS server.  So unfortunately I can't configure the server
> that way.
> 
> -----Original Message-----
> From: Doyon, Jean-Francois 
> Sent: Friday, November 01, 2002 12:51 PM
> To: Tweedy, Scott; MapLab Users (E-mail); MapServer Users (E-mail)
> Subject: RE: [maplab-users] WMS resources
> 
> 
> Scott,
> 
> That particular trick is achieved with a simple Apache configuration.
> 
> Here's what mine looks like:
> 
>         SetEnvIfNoCase Request_URI "/cgi-bin/atlaswms_en"
> MS_MAPFILE=/home/mapdata/aoc_v3/english/wms_eng.map
> 
> In my case, I do a symbolic link between atlaswms_en and the "real"
> mapserver binary. This way I can have many WFS/WMS servers running from the
> same mapserver cgi.
> 
> This will work on apache for UNIX/Linux/Windows ... Can't help you if you're
> using IIS though ...
> 
> J.F.
> 
> -----Original Message-----
> From: Tweedy, Scott [mailto:sctweedy@nrcan.gc.ca]
> Sent: Friday, November 01, 2002 11:10 AM
> To: MapLab Users (E-mail); MapServer Users (E-mail)
> Subject: [maplab-users] WMS resources
> 
> 
> I'm trying to use MapServer to put together a WMS server.  I have a number
> of layers that I want to make available to clients (most of whom will be
> using MapLab).  Can anyone point me to some resources, other than the OGC
> website and the MapServer documentation to help with the creation.
> 
> I noticed that the URL for the GMAP demo that is entered in MapLab to access
> those layers doesn't explicitly define a .map file:
> 
> http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?
> 
> Is this done with a particular script?
> 
> If anyone can point me in the right direction that would be great.
> 
> Thanks in advance,
> st
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@dmsolutions.ca
> http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> 


-- 
Paul Spencer
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca




This archive was generated by Pipermail.