<div class="gmail_quote"><br><br><div>Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named &#39;Lic_2004&#39;. in C:\ms4w\apps\WebGis_PHP\htdocs\codigo.php on line 40 Warning: [MapServer Error]: msMSSQL2008LayerGetShape(): Error executing MSSQL2008 SQL statement: SELECT Geometry.STAsBinary(),convert(varchar(20), ID2) from (select geometry, ID2 from lic_2004) as foo WHERE Geometry.STIntersects(Geometry::STGeomFromText(&#39;POLYGON((-68546.6828046745 12158,-28519.3171953255 12158,-28519.3171953255 42166,-68546.6828046745 42166,-68546.6828046745 12158))&#39;,0)) = 1 -[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near &#39;Geometry:&#39;. in C:\ms4w\apps\WebGis_PHP\htdocs\codigo.php on line 40 Fatal error: Call to a member function saveWebImage() on a non-object in C:\ms4w\apps\WebGis_PHP\htdocs\codigo.php on line 42</div>


<div> </div>
<div> </div>
<div>No codigo alterei o campo DATA da seguinte forma:</div>
<div> </div>
<div>LAYER<br> METADATA<br>        &quot;DESCRIPTION&quot; &quot;TESTE DE LIGAÇÃO A BD&quot;<br>    END<br>    CONNECTIONTYPE PLUGIN<br> PLUGIN &quot;C:/ms4w/Apache/specialplugins/msplugin_mssql2008.dll&quot;<br> CONNECTION &quot;server=***;uid=***;pwd=***;database=SIG; Integrated Security=false&quot;<br>

<font color="#ff0000"> DATA &quot;Geometry from (select geometry, ID2 from lic_2004) as foo using unique ID2&quot;<br></font> NAME &quot;Lic_2004&quot;<br>   STATUS ON<br>    TRANSPARENCY 100<br>    TYPE POLYGON<br>    UNITS METERS<br>

    CLASS<br>      STYLE<br>        COLOR 210 200 190<br>        OUTLINECOLOR 195 212 157<br>      END<br>    END</div>
<div> </div>
<div>Será que podes enviar para ver se alguem responde?</div>
<div> </div></div>Atentamente<br><br>Lisete Vieira<br>