<div dir="ltr"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 23, 2019 at 9:31 AM René-Luc Dhont <<a href="mailto:rldhont@gmail.com">rldhont@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div class="gmail-m_-6538198527979506565moz-cite-prefix">Hi Allessandro,<br>
      <br>
      Do you speak about these PR:<br>
      * <a class="gmail-m_-6538198527979506565moz-txt-link-freetext" href="https://github.com/qgis/QGIS/pull/8536" target="_blank">https://github.com/qgis/QGIS/pull/8536</a> [Server] Null field value
      in GML has to be empty string 2.18<br>
      * <a class="gmail-m_-6538198527979506565moz-txt-link-freetext" href="https://github.com/qgis/QGIS/pull/8537" target="_blank">https://github.com/qgis/QGIS/pull/8537</a> [Server][WFS] Null field
      value in GML has to be empty string 3.4<br>
      <br>
      I don't think it is a GML specific issue, but something about XSD
      and XML.<br></div></div></blockquote><div><br></div><div>Hi René-Luc, <br></div><div><br></div><div>thank you for you reply, <br></div><div><br></div><div>no, I'm talking about this:</div><div><br></div><div>image you have a field named "typ" with a NULL value, the XML should not contain that value at all, currently we get this:</div><div><br></div><div><qgs:fid>22</qgs:fid><qgs:typ></qgs:typ><qgs:name>Oebisfelder Straße</qgs:name><br></div><div><br></div><div>while I think that we should get that:</div><div><br></div><div><qgs:fid>22</qgs:fid><qgs:name>Oebisfelder Straße</qgs:name></div><div><br></div><div>In other words: if a field is NULL it should not be empty but completely omitted from the resulting GML (I suppose this is to make a difference between empty and null in case of not-numeric fields).</div><div></div><div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><div class="gmail-m_-6538198527979506565moz-cite-prefix">
      <br>
      Regards,<br>
      René-Luc<br>
      <br>
      Le 23/01/2019 à 09:14, Paul Blottiere a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">Hi Alessandro,<br>
          <br>
          > If it is a bug I can work on the fix, but maybe I'm
          missing something.<br>
          <br>
        </div>
        <div>Have you taken a look to the compliance OGC tests for WFS
          1.X? If there's tests about this particular point, we'll know
          for sure if it's something to fix.<br>
          <br>
        </div>
        <div>Regards.<br>
          <br>
        </div>
        <div>Paul<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail-m_-6538198527979506565gmail-m_2001303384811713909gmail-m_3905722089310244110gmail_attr">Le mar.
          22 janv. 2019 à 17:51, Alessandro Pasotti <<a href="mailto:apasotti@gmail.com" target="_blank">apasotti@gmail.com</a>> a écrit :<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div dir="ltr">
            <div dir="ltr">
              <div>Hi all,</div>
              <div><br>
              </div>
              <div>while working on QGIS server I noticed that WFS
                GetFeature returns NULL values as empty tags while
                according to the majority of the sources I've found it
                should not include it in the XML response (GML2 at
                least, I'm not sure about GML3 yet).</div>
              <div><br>
              </div>
              <div>If it is a bug I can work on the fix, but maybe I'm
                missing something.</div>
              <div><br>
              </div>
              <div>See: <a href="http://osgeo-org.1560.x6.nabble.com/Why-the-WFS-does-not-return-the-NULL-value-field-td3802398.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Why-the-WFS-does-not-return-the-NULL-value-field-td3802398.html</a></div>
              <div><br>
              </div>
              <div>apparently this is also what geoserver does.</div>
              <div><br>
              </div>
              <div>Any opinion?<br>
              </div>
              <div><br>
              </div>
              <div>-- <br>
                <div dir="ltr" class="gmail-m_-6538198527979506565gmail-m_2001303384811713909gmail-m_3905722089310244110gmail-m_7649144752413358713gmail_signature">Alessandro
                  Pasotti<br>
                  w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div></div></div>