<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV></DIV>
<DIV>Thanks for you answer Brent...</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have another answer...</DIV>
<DIV>&nbsp;</DIV>
<DIV>I found this page :</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://www.online-archaeology.co.uk/wordpress/?p=10">http://www.online-archaeology.co.uk/wordpress/?p=10</A></DIV>
<DIV>&nbsp;</DIV>
<DIV>But in this page appear something about pass a parameter to the SQL Server store procedure :</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Courier New">CONNECTION&nbsp;&nbsp;&nbsp;&nbsp;"&lt;OGRVRTDataSource&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;OGRVRTLayer name='POW'&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;SrcDataSource&gt;ODBC:id/pwd@MyDSN&lt;/SrcDataSource&gt; <BR>&nbsp;&nbsp; <FONT color=#c00000>&lt;SrcSQL&gt;EXEC NameofStoredProcedure '%param%'&lt;/SrcSQL&gt; <BR></FONT>&nbsp;&nbsp;&lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;LayerSRS&gt;WGS84&lt;/LayerSRS&gt;<BR>&nbsp;&nbsp;&lt;GeometryField encoding='PointFromColumns' x='Longitude' y='Latitude'/&gt; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/OGRVRTLayer&gt;<BR>&nbsp;&nbsp;&lt;/OGRVRTDataSource&gt;"<BR>&nbsp;&nbsp;STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ON<BR>&nbsp;&nbsp;DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;POW</FONT><BR>.</DIV>
<DIV>.</DIV>
<DIV>.</DIV>
<DIV>&nbsp;</DIV>
<DIV>But how can I pass the parameter to the store procedure from my page? I supose that I have to create a fields for the data entry, but somebody knows how to code the parameter pass to the mapfile?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best Regards...</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">De:</SPAN></B> Brent Fraser &lt;bfraser@geoanalytic.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B> Christian Canales &lt;ccanales29@yahoo.es&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">CC:</SPAN></B> mapserver-dev@lists.osgeo.org; szekerest@gmail.com<BR><B><SPAN style="FONT-WEIGHT: bold">Enviado:</SPAN></B> lunes, 15 de junio, 2009 21:49:56<BR><B><SPAN style="FONT-WEIGHT: bold">Asunto:</SPAN></B> Re: [mapserver-dev] ODBC Connection...<BR></FONT><BR>Christian,<BR><BR>&nbsp; Assuming your ODBC datasource is connecting to your database, you may<BR>need to specify the spatial reference system of your data, either in the<BR>VRT spec below using &lt;LayerSRS&gt;, or in the LAYER object of your map file<BR>with a PROJECTION object.<BR><BR>You could try adding "DEBUG 5" to the layer definition and using shp2img<BR>to see if it reports any errors.<BR><BR>Best Regards,<BR>Brent Fraser<BR><BR><BR><BR><BR>&gt; Hi
 All...<BR>&gt;<BR>&gt; I'm trying to connect my map with some MS SQL Server data...<BR>&gt;<BR>&gt; So, I'm trying to do it using an ODBC connection via OGR in a *.OVF<BR>&gt; file...<BR>&gt;<BR>&gt; This is the code in the file:<BR>&gt;<BR>&gt; &lt;OGRVRTDataSource&gt;<BR>&gt;&nbsp; &nbsp; &lt;OGRVRTLayer name="cartracks"&gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;SrcDataSource&gt;ODBC:trak/trakrm@webtrak&lt;/SrcDataSource&gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;SrcSQL&gt;SELECT TOP 1 ID FROM Guardar WHERE ID='53377'&lt;/SrcSQL&gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryType&gt;wkbPoint&lt;/GeometryType&gt;<BR>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &lt;GeometryField encoding="PointFromColumns" x="Lon" y="Lat"/&gt;<BR>&gt;&nbsp; &nbsp; &lt;/OGRVRTLayer&gt;<BR>&gt; &lt;/OGRVRTDataSource&gt;<BR>&gt;<BR>&gt; But I cannot see anything...<BR>&gt;<BR>&gt; Somebody knows what is wrong?<BR>&gt;<BR>&gt; I'm in a Linux environment, with Mapserver 5.4.0 and
 Chameleon...<BR>&gt;<BR>&gt; Thanks...<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; mapserver-dev mailing list<BR>&gt; <A href="mailto:mapserver-dev@lists.osgeo.org" ymailto="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</A><BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-dev</A><BR>&gt;<BR>&gt;<BR><BR><BR></DIV></DIV></DIV></div><br>



      </body></html>