[gdal-dev] SQLite BLOB format of ogr2ogr

Even Rouault even.rouault at mines-paris.org
Fri Dec 30 18:20:20 EST 2011


Le samedi 31 décembre 2011 00:09:50, Hua-Ying Ling a écrit :
> On Fri, Dec 30, 2011 at 5:37 PM, Even Rouault
> 
> <even.rouault at mines-paris.org>wrote:
> > Hum, I'll suggest you to check again. The BLOB format is WKB format
> > (unless you create explicitely a spatialite DB).
> 
> The following is the SQLite data BLOB exported using the command ogr2ogr -f
> "SQLite" output.sql inputFile.shp
> 
> This is a MultiPolygon data blob with 7 entities, it seems to follow the
> WKB format up until byte 10:13 which should be a WKB type of value 1-7.
> 
> 01 06000000 07000000 01030000

Looks valid WKB to me. See my interpretation :

01 -> wkbNDR
06000000 -> wkbMultiPolygon
07000000 --> 7 entities
01 -> wkbNDR
030000(00) -> wkbPolygon


> 
> Thanks
> Hua-Ying


More information about the gdal-dev mailing list