[mapserver-users] Example of Cold Fusion....

Puneet Kishor pkishor at GeoAnalytics.com
Tue Feb 26 15:20:45 EST 2002


> I am new to using mapserver; however, experienced in cold 
> fusion and was
> wondering if anyone could send me an example exactly how you 
> can integrate
> this tool with cold fusion?


can't really, in the mapscript kind-of way, at least not yet. However, you
can do something like this... works quite well.


<cfset map="c:/path/to/your/mapfile.map">
<cfparam name="layer" default="counties">
<cfparam name="mode" default="browse">
<cfparam name="zoomsize" default="2">
<cfparam name="zoomdir" default="1">
<cfparam name="imgxy" default="329 249">
<cfparam name="imgbox" default="-1 -1 -1 -1">

<cfhttp
url="http://server/cgi-bin/mapserv.exe?map=#map#&layer=#layer#&zoomsize=#zoo
msize#&mode=#mode#&zoomdir=#zoomdir#&mapext=shapes"
        method="get"
        resolveurl="true">
</cfhttp>

<cfform name="mapserv" method="post" action="thisfile.cfm">

<cfoutput>#cfhttp.FileContent#</cfoutput>

<input type="hidden" name="savequery" value="true">

</cfform>


hth.

pk/



More information about the mapserver-users mailing list