Ok, here's the XML response from the server:<br><br><br>?xml version='1.0' encoding="ISO-8859-1" ?><br><wfs:FeatureCollection<br> xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>"<br>
xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"<br> xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>"<br> xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br> xsi:schemaLocation="<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=regs_anu&amp;OUTPUTFORMAT=text/xml">http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=regs_anu&amp;OUTPUTFORMAT=text/xml</a>; subtype=gml/3.1.1 <a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"><br>
<gml:boundedBy><br> <gml:Envelope srsName="EPSG:4326"><br> <gml:lowerCorner>-107.210132 21.041869</gml:lowerCorner><br> <gml:upperCorner>-97.144224 29.880024</gml:upperCorner><br>
</gml:Envelope><br> </gml:boundedBy><br> <gml:featureMember><br> <ms:regs_anu gml:id="regs_anu.1"><br> <gml:boundedBy><br> <gml:Envelope srsName="EPSG:4326"><br>
<gml:lowerCorner>-107.210132 21.041869</gml:lowerCorner><br> <gml:upperCorner>-97.144224 29.880024</gml:upperCorner><br> </gml:Envelope><br> </gml:boundedBy><br>
<ms:msGeometry>?xml version='1.0' encoding="ISO-8859-1" ?><br><wfs:FeatureCollection<br> xmlns:ms="<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a>"<br>
xmlns:gml="<a href="http://www.opengis.net/gml">http://www.opengis.net/gml</a>"<br> xmlns:wfs="<a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a>"<br> xmlns:ogc="<a href="http://www.opengis.net/ogc">http://www.opengis.net/ogc</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br> xsi:schemaLocation="<a href="http://mapserver.gis.umn.edu/mapserver">http://mapserver.gis.umn.edu/mapserver</a> <a href="http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=regs_anu&amp;OUTPUTFORMAT=text/xml">http://localhost/cgi-bin/mapserv?map=/var/www/aplicaciones/sined/regsanu.map&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=regs_anu&amp;OUTPUTFORMAT=text/xml</a>; subtype=gml/3.1.1 <a href="http://www.opengis.net/wfs">http://www.opengis.net/wfs</a> <a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>"><br>
<gml:boundedBy><br> <gml:Envelope srsName="EPSG:4326"><br> <gml:lowerCorner>-107.210132 21.041869</gml:lowerCorner><br> <gml:upperCorner>-97.144224 29.880024</gml:upperCorner><br>
</gml:Envelope><br> </gml:boundedBy><br> <gml:featureMember><br> <ms:regs_anu gml:id="regs_anu.1"><br> <gml:boundedBy><br> <gml:Envelope srsName="EPSG:4326"><br>
<gml:lowerCorner>-107.210132 21.041869</gml:lowerCorner><br> <gml:upperCorner>-97.144224 29.880024</gml:upperCorner><br> </gml:Envelope><br> </gml:boundedBy><br>
<ms:msGeometry><br> <gml:Polygon srsName="EPSG:4326"><br> <gml:exterior><br> <gml:LinearRing>.....some coordinates<br><br>Thanks in advance<br>Pablo<br>
<br><div class="gmail_quote">On Wed, Nov 25, 2009 at 12:20 PM, Andreas Hocevar <span dir="ltr"><<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">pablo lopez wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks Andreas, I've just tried your suggestion and it didn't work. I'm now taking a look at the gml returned by mapserver to see if I need to specify more parameters.<br>
On the other hand, I was looking at the highlight feature code in <a href="http://trac.openlayers.org/wiki/Highlighting" target="_blank">http://trac.openlayers.org/wiki/Highlighting</a>, and I wonder if there is a way to control the highlighting with mouse clicks instead of filters.<br>
Any suggestions on this?<br>
</blockquote>
<br></div>
This is only recommended if you have very few features. The prerequisite is to load the layer as vector layer, not from WMS.<br>
<br>
But back to the original problem. If you provide a sample XML that your server returns, it will be easier to see what is wrong.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Regards,<br>
Pablo<div class="im"><br>
<br>
On Wed, Nov 25, 2009 at 1:31 AM, Andreas Hocevar <<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a> <mailto:<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>>> wrote:<br>
<br>
Hi,<br>
<br>
can you please try the following and report back if it works:<br>
<br>
<br>
pablo lopez wrote:<br>
<br>
control = new OpenLayers.Control.GetFeature({<br>
protocol:<br>
OpenLayers.Protocol.WFS.fromWMSLayer(layer),<br>
<br>
<br>
Instead, use<br>
<br>
protocol: OpenLayers.Protocol.WFS.fromWMSLayer(layer, {<br>
featurePrefix: "feature"<br>
}),<br>
<br>
That's the only idea I have.<br>
<br>
Regards,<br>
Andreas.<br>
<br>
-- Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
<br></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<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>
<br>
</div></blockquote>
<br>
<br>
-- <br><div><div></div><div class="h5">
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</div></div></blockquote></div><br>