<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<div>Thanks Stephen,</div><div><br></div><div>I believe that it would not to use CGI for I will apply different filters on the data map. </div><div>For example, my User can filter the map by rivers, companies, names of residents, etc..</div><div>In some cases, such as streets, will display the map with the selected street.</div><div><br></div><div>I believe that it is not possible to do in CGI. So understand that I need to use mapscript.</div><div><br></div><div>How can I get an example to simulate a WMS service to receive the parameters of openlayers? </div><div>Well I'll need to get these parameters in the database (using 'select from where params') in order to assemble the map and return to openlayers.</div><div><br></div><div><br></div><div>Sincerely,</div><div>Marco</div><div><br></div><br><div><div id="SkyDrivePlaceholder"></div>> Date: Thu, 14 Mar 2013 10:02:16 -0400<br>> From: woodbri@swoodbridge.com<br>> To: mapserver-users@lists.osgeo.org<br>> Subject: Re: [mapserver-users] How to integrate Openlayers + MapScript C# + Postgis<br>> <br>> On 3/14/2013 9:24 AM, Marco Araujo wrote:<br>> > Hi everybody,<br>> ><br>> > I'm trying to develop an application (ASP.NET C#) that gets the database<br>> > (postgis) map through conditions "where" and process adjustments by<br>> > mapscript and provide the map to be viewed by openlayer.<br>> <br>> If I understand correctly, you want to use .NET to control what is <br>> displayed in the map.<br>> <br>> First I would make sure that you can not do everything you need using <br>> mapserver cgi parameter substitution as this might be much simpler.<br>> <br>> > Can anyone guide me on how I should proceed?<br>> <br>> Assuming that the above will not work, then you are going to have to <br>> make you mapscript application simulate a WMS service so you can call it <br>> from OpenLayers.<br>> <br>> Now:<br>> <br>> data ---> mapserver ----> OpenLayers<br>> <br>> In this you would program in JavaScript and change the url for the map <br>> requests to pass parameters and do parameter substitution in the <br>> mapfile. This is a standard Web 2.0 approach.<br>> <br>> With mapscript:<br>> <br>> data ---> your.net -----> OpenLayers<br>> <br>> Here you have to simulate a WMS service so you can talk to OpenLayers <br>> and then read the parameters from OpenLayers to control your .NET code <br>> and how it interacts with mapserver. Since you have to pass parameters <br>> to the server anyway, I would start and see if you can do it with the <br>> existing mapserver code.<br>> <br>> -Steve W<br>> <br>> > I need a WMS (mapserver) to display dynamic data (from database)?<br>> ><br>> > Already have the following:<br>> > 1. up and running MapServer CGI in my Windows2008 (64bits) under IIS 7.5<br>> > (not apache).<br>> ><br>> > 2. The database postgis mount but I have no idea how to retrieve the data<br>> > and presents it in openlayers.<br>> ><br>> > 3. Tests (successfully) with openlayers presenting a static map of<br>> > mapserver as follows:<br>> > /layer = new OpenLayers.Layer.WMS("WorldMap",<br>> > "http://localhost/MapServer/mapserv.exe?<br>> > map=C:/maps/itasca.map&mode=map&template=openlayers&layer=lakespy2&layer=dlgstln2");/<br>> ><br>> > If you can help me I appreciate it.<br>> ><br>> > Sincerely,<br>> > Marco Araujo<br>> > Brazil / Sao Paulo<br>> ><br>> ><br>> ><br>> > _______________________________________________<br>> > mapserver-users mailing list<br>> > mapserver-users@lists.osgeo.org<br>> > http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>> ><br>> <br>> _______________________________________________<br>> mapserver-users mailing list<br>> mapserver-users@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br></div>                                          </div></body>
</html>