On Fri, Dec 30, 2011 at 6:20 PM, Even Rouault <span dir="ltr">&lt;<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Looks valid WKB to me. See my interpretation :<br>
<br>
01 -&gt; wkbNDR<br>
06000000 -&gt; wkbMultiPolygon<br>
07000000 --&gt; 7 entities<br>
01 -&gt; wkbNDR<br>
030000(00) -&gt; wkbPolygon<br></blockquote><div><br></div><div>You&#39;re right.  I didn&#39;t realize the wkbPolygon had a wkbNDR field as well.  I was able to decode the entire BLOB correctly.  This reference is useful for anyone else who is interested in parsing the WKB format: <a href="http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/opt/rsbp4121.htm">http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/opt/rsbp4121.htm</a></div>
<div><br></div><div>Thanks for your help!</div><div>Hua-Ying</div></div>