[gdal-dev] SQLite BLOB format of ogr2ogr

Hua-Ying Ling hyling-s7 at nc.rr.com
Fri Dec 30 19:06:16 EST 2011


On Fri, Dec 30, 2011 at 6:20 PM, Even Rouault
<even.rouault at mines-paris.org>wrote:

> Looks valid WKB to me. See my interpretation :
>
> 01 -> wkbNDR
> 06000000 -> wkbMultiPolygon
> 07000000 --> 7 entities
> 01 -> wkbNDR
> 030000(00) -> wkbPolygon
>

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:
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/opt/rsbp4121.htm

Thanks for your help!
Hua-Ying
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111230/3bf70e16/attachment.html


More information about the gdal-dev mailing list