<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Christopher Schmidt wrote:
<blockquote cite="mid:20080314115138.GD30649@metacarta.com" type="cite">
  <pre wrap="">On Fri, Mar 14, 2008 at 10:50:46AM +0100, Rinke Heida wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"&gt;
&lt;/head&gt;
&lt;body bgcolor="#ffffff" text="#000000"&gt;
In order to get WFS Delete to work I changed OpenLayers/Format/WFS.js.&lt;br&gt;
For some reasen in the remove section other properties are used as with
Update and Insert:&lt;br&gt;
feature.attribures.fid &amp;lt;-&amp;gt; feature.fid&lt;br&gt;
this.featureNS &amp;lt;-&amp;gt; this.wfsns&lt;br&gt;
I changed these things and after that a feature was really deleted from
the database!&lt;br&gt;
Probably the same result is achieved if you set these properties in
your own script, but for me the test was whether it could work and than
what would happen.&lt;br&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yeah, this is fixed in OpenLayers trunk. Simply an oversight in the code
until now. Thanks for the email though.

  </pre>
</blockquote>
Glad it will be fixed in a coming release<br>
<blockquote cite="mid:20080314115138.GD30649@metacarta.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">Actually I was looking for a way to delete only the geometry or empty
the geometry but can't get that to work yet, because in my situation
other attributes than geometry have to be kept in the database.&lt;br&gt;
&lt;br&gt;
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I have no idea how to do this: I think what you actually want to do is
an update, with a null geom: OpenLayers probably doesn't do that well,
but if you figure out a way to do it, and want the code in OL, please
let us know :) 
  </pre>
</blockquote>
I figured out to write an empty value node <br>
&nbsp;&nbsp;&nbsp;&nbsp; valueNode.appendChild(this.createTextNode(""));<br>
when this.geometry is null instead of:<br>
&nbsp;&nbsp;&nbsp;&nbsp; valueNode.appendChild(this.buildGeometryNode(feature.geometry));<br>
because buildGeometryNode doesn't like a null geometry.<br>
<br>
However, it doesn't take me anywhere because I suspect GeoServer can't
handle a NULL geometry at all (not for reading and not for writing).<br>
(We use an Oracle Spatial database and the GEOM column is nullable, so
that's not the problem. Also with SQL it's no problem to set GEOM to
null.)<br>
<br>
Rinke<br>
<blockquote cite="mid:20080314115138.GD30649@metacarta.com" type="cite">
  <pre wrap="">
Regards,
  </pre>
</blockquote>
</body>
</html>