Hello Gabriel,<br><br>Thank you for your reply. I add the geometryName property to the WFS constructor; it now is:<br><br>wfs = new OpenLayers.Layer.WFS(<br>                &quot;Tanques&quot;,<br>                &quot;/geoserver/wms&quot;,<br>
                {typename: &#39;insaar:M_TANQUE&#39;,<br>                 srs: &#39;EPSG:82176&#39;<br>                },<br>                {<br>                    typename: &quot;M_TANQUE&quot;,<br>                    featureNS: &quot;<a href="http://insaar.inag.pt">http://insaar.inag.pt</a>&quot;,<br>
                    geometryName: &quot;shape&quot;,<br>                    commitReport: function() {<br>                    },<br>                    extractAttributes: true,<br>                }<br>            );<br><br>
This had no effect, in the request the feature is still identified with &quot;the_geom&quot;. I could change the column name in the database, but would prefer some workaround with the code.<br><br>Thanks,<br><br>Luís<br> <br>
<br><div class="gmail_quote">On Tue, Jan 26, 2010 at 10:12 PM, Gabriel Nolasco <span dir="ltr">&lt;<a href="mailto:nolasco_gabriel@yahoo.com.br">nolasco_gabriel@yahoo.com.br</a>&gt;</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;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
Hello Luis,<br><br>If you are using a vector layer with a WFS protocol you can use the property &#39;geometryName&#39; to set the name of the geometry column.  Default is &#39;the_geom&#39;[1]<br>You can see an example of the WFS protocol usage at OpenLayers examples page [2]<br>
<br>[1] <a href="http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html#OpenLayers.Protocol.WFS.v1.geometryName" target="_blank">http://dev.openlayers.org/docs/files/OpenLayers/Protocol/WFS/v1-js.html#OpenLayers.Protocol.WFS.v1.geometryName</a><br>
[2] <a href="http://openlayers.org/dev/examples/wfs-protocol-transactions.html" target="_blank">http://openlayers.org/dev/examples/wfs-protocol-transactions.html</a><br><br>Best regards,<br>Gabriel Nolasco</td></tr></tbody></table>
</blockquote></div><br>