I can add a little to Tue's comments.

1. you can look at installing tinyOWS which is part of mapserver.org releases, this implements WFS-T

2. alternative this is as Tue has suggested do a getfeatureinfo (WMS request) on the feature, and extract the PK. You can then trivially write an ajax request in say php, to that you send the PK to to and it connects to the postgresql/postgis database and deletes the feature.

Both of these assume that the data layer you want to edit is being served from a postgresql/postgis database. You can NOT safely delete features from shapefiles.

-Steve W

On 11/24/2012 5:35 PM, Tue Topholm wrote:
You can't do that with openlayers, except with WFS-T

You will need to develop it. (simple solution here)

1. use getfeatureinfo (WMS request) on the feature, and extract the PK.
2. Delete the feature in the database with the PK you got above. (This
needs to be developed in some server side language)
3. Refresh the wms, and it would be removed.


--

Med venlig hilsen / Kind regards

Tue Topholm
Sugee
Tlf: +45 32 13 32 32
W: http://www.sugee.dk


2012/11/24 yassine bouderaa <[email protected]
<mailto:[email protected]>>


    Hi.

    I need to know how can I delete a feature from a wms layer loaded
    from a database postgres to geoserver and displayed using openlayer
    , I don’t want to delete a feature from a vector layer but from a wms .

    Thanks for ur help.


    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.osgeo.org/mailman/listinfo/openlayers-users




_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to