<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi René-Luc<br>
      <br>
      Below is the capabilities response I get. There is a transaction
      element in it (so I guess publishing the layer as WFS-T worked).
      But the WFS client in QGIS does not seem to recognize it.<br>
      <br>
      Regards,<br>
      Marco<br>
      <br>
      <br>
      <WFS_Capabilities
      xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
      xmlns:ogc=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a> version="1.0.0"
      xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a> updateSequence="0"
      xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a>
      xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/wfshttp://schemas.opengis.net/wfs/1.0.0/wfs.xsd">"http://www.opengis.net/wfs
      http://schemas.opengis.net/wfs/1.0.0/wfs.xsd"</a>
      xmlns:gml=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
      xmlns:ows=<a class="moz-txt-link-rfc2396E" href="http://www.opengis.net/ows">"http://www.opengis.net/ows"</a>><br>
       <Service><br>
        <Name>WMS</Name><br>
        <!-- Human-readable title for pick lists --><br>
        <Title>QGIS mapserver</Title><br>
        <!-- Narrative description providing additional information
      --><br>
        <Abstract>A WMS service with QGIS
      mapserver</Abstract><br>
        <KeywordList><br>
         <Keyword>QGIS mapserver</Keyword><br>
        </KeywordList><br>
        <!-- Top-level web address of service or service provider. 
      See also OnlineResource<br>
                           elements under <DCPType>. --><br>
        <OnlineResource xlink:type="simple"
      xmlns:xlink=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a>
      xlink:href=<a class="moz-txt-link-rfc2396E" href="http://www.sourcepole.ch/">"http://www.sourcepole.ch/"</a>/><br>
        <!-- Contact information --><br>
        <ContactInformation><br>
         <ContactPersonPrimary><br>
          <ContactPerson>Ionut Iosifescu</ContactPerson><br>
          <ContactOrganization>ETHZ</ContactOrganization><br>
         </ContactPersonPrimary><br>
         <ContactAddress><br>
          <AddressType>postal</AddressType><br>
          <Address>Wolfgang-Pauli-Strasse 15</Address><br>
          <City>Zurich</City><br>
          <StateOrProvince>ZH</StateOrProvince><br>
          <PostCode>8093</PostCode><br>
          <Country>SWITZERLAND</Country><br>
         </ContactAddress><br>
         <ContactVoiceTelephone>+41 44 633 30
      28</ContactVoiceTelephone><br>
        
<ContactElectronicMailAddress><a class="moz-txt-link-abbreviated" href="mailto:iosifescu@karto.baug.ethz.ch">iosifescu@karto.baug.ethz.ch</a></ContactElectronicMailAddress><br>
        </ContactInformation><br>
        <!-- Fees or access constraints imposed. --><br>
        <Fees>none</Fees><br>
        <AccessConstraints>none</AccessConstraints><br>
        <LayerLimit>999</LayerLimit><br>
       </Service><br>
       <Capability><br>
        <Request><br>
         <GetCapabilities><br>
          <Format>text/xml</Format><br>
          <DCPType><br>
           <HTTP><br>
            <Get><br>
             <OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;">"http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;"</a>/><br>
            </Get><br>
           </HTTP><br>
          </DCPType><br>
         </GetCapabilities><br>
         <DescribeFeatureType><br>
          <SchemaDescriptionLanguage><br>
           <XMLSCHEMA/><br>
          </SchemaDescriptionLanguage><br>
          <DCPType><br>
           <HTTP><br>
            <Get><br>
             <OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;">"http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;"</a>/><br>
            </Get><br>
           </HTTP><br>
          </DCPType><br>
         </DescribeFeatureType><br>
         <GetFeature><br>
          <ResultFormat><br>
           <GML2/><br>
           <GeoJSON/><br>
          </ResultFormat><br>
          <DCPType><br>
           <HTTP><br>
            <Get><br>
             <OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;">"http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;"</a>/><br>
            </Get><br>
           </HTTP><br>
          </DCPType><br>
         </GetFeature><br>
         <Transaction><br>
          <DCPType><br>
           <HTTP><br>
            <Post><br>
             <OnlineResource xlink:type="simple"
xlink:href=<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;">"http://localhost/cgi-bin/qgis_mapserv.fcgi?MAP=/home/marco/geodaten/projekte/a.qgs&amp;"</a>/><br>
            </Post><br>
           </HTTP><br>
          </DCPType><br>
         </Transaction><br>
        </Request><br>
       </Capability><br>
       <FeatureTypeList><br>
        <Operations><br>
         <Query/><br>
        </Operations><br>
        <FeatureType><br>
         <Name>gem</Name><br>
         <Title>gem</Title><br>
         <Abstract></Abstract><br>
         <SRS>EPSG:21781</SRS><br>
         <LatLongBoundingBox maxx="716900" minx="665647"
      maxy="283339" miny="223895"/><br>
         <Operations><br>
          <Query/><br>
         </Operations><br>
        </FeatureType><br>
       </FeatureTypeList><br>
       <ogc:Filter_Capabilities><br>
        <ogc:Spatial_Capabilities><br>
         <ogc:Spatial_Operators><br>
          <ogc:BBOX/><br>
         </ogc:Spatial_Operators><br>
        </ogc:Spatial_Capabilities><br>
        <ogc:Scalar_Capabilities><br>
         <ogc:Comparison_Operators><br>
          <ogc:Simple_Comparisons/><br>
         </ogc:Comparison_Operators><br>
        </ogc:Scalar_Capabilities><br>
       </ogc:Filter_Capabilities><br>
      </WFS_Capabilities><br>
      <br>
      On 06.10.2012 16:37, René-Luc D'Hont wrote:<br>
    </div>
    <blockquote
cite="mid:CAPkCcEazmu5ftOaa3JOy4hChXhbBUPbN+TBDRsFoyE7tvNorcQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html;
        charset=ISO-8859-1">
      <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 moz-do-not-send="true"
          href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>>
        a écrit :<br type="attribution">
        <blockquote class="gmail_quote">
          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">
            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">
              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">
                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">
                  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/src/mapserver/qgswfsserver.cpp:718:35:
                  Fehler: »QGS_NAMESPACE« wurde in diesem
                  Gültigkeitsbereich nicht definiert<br>
                  /home/marco/src/Quantum-GIS/src/mapserver/qgswfsserver.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">
                    Hi all,<br>
                    <br>
                    I need some review for the WFS-T implementation in
                    QGIS-Server.<br>
                    <a moz-do-not-send="true"
href="https://github.com/rldhont/Quantum-GIS/tree/wfs_server_transaction"
                      target="_blank">https://github.com/rldhont/Quantum-GIS/tree/wfs_server_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>
                    _______________________________________________<br>
                    Qgis-developer mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Qgis-developer@lists.osgeo.org"
                      target="_blank">Qgis-developer@lists.osgeo.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
                      target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
                  </blockquote>
                  <br>
                  _______________________________________________<br>
                  Qgis-developer mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Qgis-developer@lists.osgeo.org"
                    target="_blank">Qgis-developer@lists.osgeo.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
                    target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
                </blockquote>
                <br>
              </blockquote>
              <br>
              <br>
            </blockquote>
            <br>
            _______________________________________________<br>
            Qgis-developer mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Qgis-developer@lists.osgeo.org"
              target="_blank">Qgis-developer@lists.osgeo.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
              target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-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 moz-do-not-send="true"
            href="mailto:marco.hugentobler@sourcepole.ch"
            target="_blank">marco.hugentobler@sourcepole.ch</a> <a
            moz-do-not-send="true" href="http://www.sourcepole.ch"
            target="_blank">http://www.sourcepole.ch</a><br>
          Technical Advisor QGIS Project Steering Committee<br>
          <br>
          _______________________________________________<br>
          Qgis-developer mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.osgeo.org/mailman/listinfo/qgis-developer"
            target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
<a class="moz-txt-link-abbreviated" href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a class="moz-txt-link-freetext" href="http://www.sourcepole.ch">http://www.sourcepole.ch</a>
Technical Advisor QGIS Project Steering Committee</pre>
  </body>
</html>