<p dir="ltr">Do you have a wfstlayers element in the QGIS project file ?<br>
In this element I define the WFS-T capabilities. The server uses it to define the layer capabilities. You can find its in the Query element of your layer featuretype element.</p>
<div class="gmail_quote">Le 6 oct. 2012 16:23, "Marco Hugentobler" <<a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi René-Luc<br>
<br>
>If you want to test QGIS Server Transaction you need to use the QGIS of my branch<br>
<br>
I'm using the branch wfs_server_transaction from your repo. Adding a WFS is possible, but QGIS does not show it as editable (the edit tool is grayed out).<br>
<br>
Regards,<br>
Marco<br>
<br>
On 03.10.2012 16:53, rldhont wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Marco,<br>
<br>
I updated the QgsGeometry Class to add :<br>
* fromGML2 static method<br>
* exportToGML2 method<br>
<br>
If you want to test QGIS Server Transaction you need to use the QGIS of my branch, because I update the WFS provider to POST transaction with a query_string (in the case of QGIS Server the map parameter).<br>
<br>
Regards,<br>
René-Luc<br>
<br>
Le 03/10/2012 11:44, Marco Hugentobler a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi René-Luc<br>
<br>
>For the GML, I'll update QgsGeometry class ?<br>
<br>
Yes, it will be good to have everything in one place (also for a potential redesign of QgsGeometry). But the GML methods should not be exported to the bindings, maybe you could add a comment in that direction to qgsgeometry.h.<br>

<br>
Regards,<br>
Marco<br>
<br>
On 03.10.2012 10:03, rldhont wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Marco,<br>
<br>
I updated my branch with the definition of QGS_NAMESPACE and OGC_NAMESPACE.<br>
<br>
For the GML, I'll update QgsGeometry class ?<br>
<br>
For Query_String, I found the code with a google search.<br>
<br>
I test WFS-T with a jQuery XML POST and with QGIS.<br>
<br>
Cheers,<br>
René-Luc D'Hont<br>
3Liz<br>
<br>
Le 03/10/2012 09:26, Marco Hugentobler a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi René-Luc<br>
<br>
Thank you for this nice addition, WFS-T will certainly be a great contribution to QGIS server!<br>
<br>
I tried to compile the wfs_server_transaction branch, but it fails with the following error message (QGS_NAMESPACE and OGC_NAMESPACE are not defined):<br>
<br>
/home/marco/src/Quantum-GIS/<u></u>src/mapserver/qgswfsserver.<u></u>cpp:718:35: Fehler: »QGS_NAMESPACE« wurde in diesem Gültigkeitsbereich nicht definiert<br>
/home/marco/src/Quantum-GIS/<u></u>src/mapserver/qgswfsserver.<u></u>cpp:721:39: Fehler: »OGC_NAMESPACE« wurde in diesem Gültigkeitsbereich nicht definiert<br>
<br>
<br>
Maybe there is a commit that you did not push to github yet?<br>
<br>
Then, looking at qgswfsserver.cpp, it seems that most of the 2000 code lines deal with GML. It would be good to separate that into a GML handling class on its own (which could also be used from qgswfsprovider, at the moment, the gml reading seems to be duplicated).<br>

<br>
In QgsPostRequestHandler, the code looks for the environment variable QUERY_STRING. I thought QUERY_STRING is only defined in http get requests and in post requests, there is only CONTENT_LENGTH ?<br>
<br>
Which WFS client did you use for testing (QGIS desktop)?<br>
<br>
Regards,<br>
Marco<br>
<br>
<br>
<br>
<br>
On 01.10.2012 15:21, rldhont wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I need some review for the WFS-T implementation in QGIS-Server.<br>
<a href="https://github.com/rldhont/Quantum-GIS/tree/wfs_server_transaction" target="_blank">https://github.com/rldhont/<u></u>Quantum-GIS/tree/wfs_server_<u></u>transaction</a><br>
This branche adds the capability to the QGIS Server to understand transaction, adds a way to define which WFS layer can be editable and if the administrator authorize insert and delete, adds an enhancements for the WFS provider to support WFS-T which needs extra parameters.<br>

<br>
For the configuration on the WFS-T part, Update is possible if the layer is publish as a WFS layer, Insert is possible only if Update is possible and Delete is possible only if Insert is possible. You can check Delete on a layer and it's automatically a WFS layer, or uncheck Publied on a layer and all the checkbox are unchecked.<br>

<br>
I have testing QGIS-Server transaction with an ESRI ShapeFile and a Spatialite database. The both doesn't return a good FID, but only Spatialite has persistent FID. The Spatialite provider probably needs an update.<br>

I test my QGIS-Server with QGIS and some JavaScript code.<br>
<br>
René-Luc D'Hont<br>
3Liz<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote>
<br>
<br>
-- <br>
Dr. Marco Hugentobler<br>
Sourcepole -  Linux & Open Source Solutions<br>
Weberstrasse 5, CH-8004 Zürich, Switzerland<br>
<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.<u></u>ch</a> <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a><br>
Technical Advisor QGIS Project Steering Committee<br>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote></div>