<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    The EWKB that JTS and GEOS implement is based on the PostGIS EWKB
    specification (which predates the SQL/MM spec, I think.)<br>
    <br>
    I don't have a good reference for the PostGIS spec - it would be
    nice if there was one online somewhere (hint, hint).<br>
    <br>
    It might be nice if JTS/GEOS supported the SQL/MM spec as well.&nbsp; Do
    you have a reference available for the spec?<br>
    <br>
    Martin<br>
    <br>
    On 8/3/2011 4:19 AM, Oyvind Idland wrote:
    <blockquote
cite="mid:CAEVk4t3ai3G0ymyRkThY10SixVcukncpb+abY0xu8k1ju9F6CA@mail.gmail.com"
      type="cite">Hello,<br>
      <br>
      i am trying to read WKB chunks based on the iso SQL/MM part3 spec.
      However, this doesn't seem to work.<br>
      <br>
      From the WkbReader source code doc:&nbsp; <br>
      "This implementation supports the extended WKB standard for
      representing 3-dimensional coordinates. The presence of 3D
      coordinates is signified by setting the high bit of the wkbType
      word."<br>
      <br>
      Which extended WKB standard is being refered to here ?<br>
      <br>
      <br>
      <br>
      For example, In the SQL/MM spec, various point types are defined
      as the following unsigned values (not hex):<br>
      <br>
      &lt;wkbpoint&gt;&nbsp;&nbsp;&nbsp; &nbsp;1<br>
      &lt;wkbpointz&gt;&nbsp;&nbsp; 3000001<br>
      &lt;wkbpointzm&gt; 2000001<br>
      &lt;wkbpointm&gt;&nbsp;&nbsp; 4000001<br>
      <br>
      However, in the WkbReader.cpp the following logic is used:<br>
      <br>
      &nbsp;&nbsp;&nbsp; int typeInt = dis.readInt();<br>
      &nbsp;&nbsp;&nbsp; int geometryType = typeInt &amp; 0xff;<br>
      &nbsp;&nbsp;&nbsp; ......<br>
      &nbsp;&nbsp;&nbsp; bool hasZ = ((typeInt &amp; 0x80000000) != 0);<br>
      &nbsp;&nbsp;&nbsp; if (hasZ) inputDimension = 3;<br>
      &nbsp;&nbsp;&nbsp; else inputDimension = 2; // doesn't handle M currently<br>
      <br>
      <br>
      <br>
      <br>
      Is there any plans to implement support for SQL/MM ?&nbsp; (I can
      volunteer for a patch, if desired)<br>
      <br>
      <br>
      -- Oyvind<br>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
geos-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geos-devel">http://lists.osgeo.org/mailman/listinfo/geos-devel</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="avgcert" color="#000000" align="left">No virus found in
        this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 10.0.1390 / Virus Database: 1518/3807 - Release Date:
        08/03/11</p>
    </blockquote>
  </body>
</html>