[Featureserver] OpenLayers+FeatureServer full transactional example

Alexandre Dube adube at mapgears.com
Mon Jun 22 16:32:34 EDT 2009


Hi,

  What is the correct way to formulate a "delete" action to 
FeatureServer with OpenLayers ? 

  - tried the AJAX request (same as the featureserver.org example, same 
problem) : got an "invalid json" error message
  - tried with OpenLayers.Request.DELETE : got error 500
  - tried with layer.protocol.commit(features) : got error 500
  - tried to look at the apache and featureserver log : nothing

  but, in the error log of apache I saw "Premature end of script 
headers: proxy.cgi", the proxy sample borrowed from OpenLayers.  Has 
anyone already had this kind of trouble with the proxy ?

Alexandre

Alexandre Dube wrote:
> Hi,
>
>    Still trying to make OpenLayers+FeatureServer work in full 
> transactional mode.  I looked at the "manual json edit" example at 
> featureserver.org (2) and tried to do the same with my demo (1).
>
>   It works well for Insert/Modify now, but it doesn't with Delete.  The 
> FS example (2) has the same problem.  I get a the error :
>
> <<<
> Invalid JSON. Content was: _method=delete
>  >>>
>
> The request is a POST.  I'm not sure, but I think it should be a 
> "Delete".  I don't know what's wrong yet, but if anyone has a hint, that 
> would be appreciated.
>
> (1) demo : http://dev4.mapgears.com/bdga-fs/
> (2) http://featureserver.org/demo/json.html
> (3) new js file : http://dev4.mapgears.com/bdga-fs/main-ajax.js
>
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Featureserver mailing list