So I’m trying to write a program that has the ability to read and write data from a WFS (Web Feature Service) I’ve managed to pull all the data I want from the WFS. Now I’m trying to write to it and edit data. When ever I try to delete a layer, or add one I get this error respectively: ERROR 6: CreateLayer() not supported by this data source.
I’m assuming that means the WFS is set to Read-Only? I’m also the publisher of the WFS, created it via GeoServer , has 58 layers in it and so on. Is there a setting within GeoServer to allow writing of data to it?
Im coding in C++ using QT Creator version 5.4.1. Using the GDAL Libraries with xerces.
My code to try to add/remove a layer
m_datasource = OGRSFDriverRegistrar::Open("Wfs here",true);
m_datasource->DeleteLayer(m_current_feature_id);
m_datasource->AddLayer("My awesome layer",0,WKBUnknown,0);
Also I just checked, via code I told Gdal to open the Data Source with the ability to write to it, gave no error meaning I can write to it then. What am I doing wrong?
Thanks