Hi Steve...<br><br>Mapserver version:<br>MapServer version 5.6.0-beta4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE<br>SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER<br>
SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE<br><br><br>One layer definition (Mapfile)<br><br>LAYER<br> NAME Argentina<br> METADATA<br>
"wms_title" "Argentina" ##required <br> "wms_feature_info_mime_type" "text/html" <br> END<br> GROUP "Test"<br> TYPE POLYGON<br>
STATUS ON<br> INCLUDE "Connection.map" ##MSSQL2008 <br> DATA "the_geom from viwargentina USING UNIQUE oid USING SRID=0"<br> PROJECTION<br> "+init=epsg:4326"<br>
END<br><br> CLASS<br> COLOR 255 200 255<br> STYLE<br> OUTLINECOLOR 190 190 190<br> WIDTH 1<br> END<br> END<br> END<br><br><br>I´m using GeoExt to be able to use Sublayers, one layer definition :<br>
<br> new OpenLayers.Layer.WMS("Country",<br> _mapfile, {<br> layers: ['Argentina', 'Uruguay'],<br> format: "image/png",<br>
transparent: "true"<br> }, {<br> isBaseLayer: true,<br> buffer: 0,<br> visibility: true<br> }),<br><br>Event to register control:<br>
_wmsControl.events.register("getfeatureinfo",map,showInfo); <br><br>Thanks<br><br><br><div class="gmail_quote">2010/1/19 <span dir="ltr"><<a href="mailto:Steve.Toutant@inspq.qc.ca">Steve.Toutant@inspq.qc.ca</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><font face="sans-serif" size="2">Wich mapServer version?</font>
<br><font face="sans-serif" size="2">Can you send one layer definition of
the mapfile and how you create the Ol layer for this layer?</font>
<br><font face="sans-serif" size="2">Do you register an event for this control,
please provide all the code related to this control.</font>
<br><font face="sans-serif" size="2">steve</font>
<p>
</p><p>
<br>
<br>
<br>
</p><table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b>stela anders <<a href="mailto:stelaanders@gmail.com" target="_blank">stelaanders@gmail.com</a>>@<a href="http://openlayers.org" target="_blank">openlayers.org</a></b>
</font>
<br><font face="sans-serif" size="1">Envoyé par : <a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a></font>
<p><font face="sans-serif" size="1">19/01/2010 01:36 PM</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">A</font></div>
</td><td><font face="sans-serif" size="1">openlayers user list <<a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a>></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Objet</font></div>
</td><td><font face="sans-serif" size="1">[OpenLayers-Users] WMSGetFeatureInfo
error (Style (undefined) not defined
on layer) ...</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table>
<br>
<br>
<br>
<br>
<br><font size="3">Hiii !!<br>
<br>
I´m using Mapserver WMS + Openlayers...<br>
I created a WMSGetFeatureInfo control, when I try to use I got that error:
<br>
<br>
<?xml version='1.0' encoding="ISO-8859-1" standalone="no"
?><br>
<!DOCTYPE ServiceExceptionReport SYSTEM "</font><a href="http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd" target="_blank"><font color="blue" size="3"><u>http://schemas.opengis.net/wms/1.1.0/exception_1_1_0.dtd</u></font></a><font size="3">"><br>
<ServiceExceptionReport version="1.1.0"><br>
<ServiceException code="StyleNotDefined"><br>
msWMSLoadGetMapParams(): WMS server error. Style (undefined) not defined
on layer.<br>
</ServiceException><br>
</ServiceExceptionReport><br>
<br>
<br>
My control :<br>
<br>
var _wmsControl = new OpenLayers.Control.WMSGetFeatureInfo({ <br>
url : _mapfilex,
<br>
title: 'Click on the map to get information on layers', <br>
queryVisible: true, <br>
infoFormat: 'application/vnd.ogc.wms_xml' <br>
});<br>
<br>
<br>
All layers on my mapfile have Style defined... <br>
<br>
Any idea?<br>
<br>
Thanks<br>
<br>
Stella</font><tt><font size="2">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</font></tt>
<br>
<br>
<br></blockquote></div><br>