On Fri, Dec 30, 2011 at 6:20 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org">even.rouault@mines-paris.org</a>></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 -> wkbNDR<br>
06000000 -> wkbMultiPolygon<br>
07000000 --> 7 entities<br>
01 -> wkbNDR<br>
030000(00) -> wkbPolygon<br></blockquote><div><br></div><div>You're right. I didn'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>