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> "Tanques",<br> "/geoserver/wms",<br>
{typename: 'insaar:M_TANQUE',<br> srs: 'EPSG:82176'<br> },<br> {<br> typename: "M_TANQUE",<br> featureNS: "<a href="http://insaar.inag.pt">http://insaar.inag.pt</a>",<br>
geometryName: "shape",<br> commitReport: function() {<br> },<br> extractAttributes: true,<br> }<br> );<br><br>
This had no effect, in the request the feature is still identified with "the_geom". 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"><<a href="mailto:nolasco_gabriel@yahoo.com.br">nolasco_gabriel@yahoo.com.br</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;">
<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 'geometryName' to set the name of the geometry column. Default is 'the_geom'[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>