<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Nyall,</p>
    I would say that the focus (on the examples in 6.1.2.6.4) is the
    LocateAlong and LocateBetween methods and the examples used are less
    carefully written. Next to each other, examples on 6.1.2.6.3 and
    6.1.2.6.4 seem written by different contributors.<br>
    <p>Page 52 says: "The Well-known Text Representation of Geometry is
      defined below using BNF". That's the WKT representation
      definition, even if we can find some examples failing this
      notation.</p>
    <p>We could support both in QGIS. We can eventually read (parse)
      both notations to keep them consistent with previous WKT outputs,
      but we should write using the BNF notation.</p>
    <p>Regards,</p>
    <p>Jorge<br>
    </p>
    <div class="moz-cite-prefix">On 06/07/24 10:02, Nyall Dawson via
      QGIS-Developer wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAB28AsjafdgbemT4CEmjQNDg0gnT3s3+_wdonneXXD+qJpF+UA@mail.gmail.com">
      
      <div dir="auto">
        <div><br>
          <br>
          <div class="gmail_quote">
            <div dir="ltr" class="gmail_attr">On Sat, 6 July 2024,
              4:56 pm Even Rouault, <<a href="mailto:even.rouault@spatialys.com" moz-do-not-send="true" class="moz-txt-link-freetext">even.rouault@spatialys.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div> Hi,
                <blockquote type="cite">
                  <div dir="auto">
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">Both formats are compliant with the
                      WKT specifications.<br>
                    </div>
                  </div>
                </blockquote>
                <p>Are they? I may have missed something in the Simple
                  Features spec, but looking at <a href="https://portal.ogc.org/files/?artifact_id=25355" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">https://portal.ogc.org/files/?artifact_id=25355</a>
                  , I can't see where it would allow the form
                  {geometryTypeName}Z without a space between
                  {geometryTypeName} and Z. <br>
                </p>
                <p>For example the BNF at page 56 shows:</p>
                <p><point z tagged text> ::= point z <point z
                  text></p>
                <p>The examples at page 62 also show a space</p>
              </div>
            </blockquote>
          </div>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Hmmmm.... What about the examples in 6.1.2.6.4?</div>
        <div dir="auto"><br>
        </div>
        <div dir="auto">Nyall</div>
        <div dir="auto">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div>
                <p>.<br>
                </p>
                <p>Even<br>
                </p>
                <blockquote type="cite">
                  <div dir="auto">
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">Nyall</div>
                    <div dir="auto"><br>
                    </div>
                    <div dir="auto">
                      <div class="gmail_quote">
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                          A minimal example is below. Executing it will
                          return an exception: <br>
                          "RuntimeError: OGR Error: Corrupt data"<br>
                          <br>
                          from osgeo import ogr<br>
                          <br>
                          qgis_geometyry = QgsGeometry().fromWkt("POINT
                          Z (0 0 0)")<br>
                          wkt = qgis_geometyry.asWkt() # 'PointZ (0 0
                          0)'<br>
                          ogr.CreateGeometryFromWkt(wkt)<br>
                          <br>
_______________________________________________<br>
                          QGIS-Developer mailing list<br>
                          <a href="mailto:QGIS-Developer@lists.osgeo.org" rel="noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">QGIS-Developer@lists.osgeo.org</a><br>
                          List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
                          Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer noreferrer noreferrer" target="_blank" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
                        </blockquote>
                      </div>
                    </div>
                  </div>
                  <br>
                  <fieldset></fieldset>
                  <pre>_______________________________________________
QGIS-Developer mailing list
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">QGIS-Developer@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
                </blockquote>
                <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank" rel="noreferrer" moz-do-not-send="true" class="moz-txt-link-freetext">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
    </blockquote>
  </body>
</html>