Mapserver CGI question

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Tue Oct 5 18:56:37 EDT 2004


> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD
> Sent: Tuesday, 05 October, 2004 17:56
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question
> 
> 
> Is there a way to pass Mapserver the base CGI ( not using it 
> as a wms ) some parameter and have it not return an image but 
> instead return information about the mapfile like the 
> available layer names, current extents and that sort of thing?
>

One option is to produce a web template as an XML document, i.e.:

<mapinfo>
 <extent>
   <bbox minx="[minx]" miny="[miny" maxx="[maxx]" maxy="[maxy]"/>
 </extent>
...
</mapinfo>
 
..and have MapServer CGI return the XML document, which you can do
whatever you please with.

..Tom

> sort of along the lines of (psuedo code)
> 
http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=L
ayernames

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



More information about the mapserver-users mailing list