[gdal-dev] How to write WKB as string?

Even Rouault even.rouault at spatialys.com
Wed Oct 14 10:06:53 PDT 2015


Le mercredi 14 octobre 2015 18:59:18, Roger André a écrit :
> Hi All,
> 
> I have a tool which currently exports geometry using the ExportToWkt()
> function.  It works great, but I'd like to try reducing the size of my
> output files by using a format like the string representation of WKB that
> shp2pgsql produsces when creating SQL insert files.  Is there a export
> function available in GDAL that I could use for this?
> 
> I'm looking at http://www.gdal.org/classOGRGeometry.html currently, but
> have not yet spotted what I'm looking for.

Wasn't OGRGeometry::exportToWkb() obvious enough ;-) ?

http://www.gdal.org/classOGRGeometry.html#a9a3ad2f9b55285be500ca6ac5dc75d1d


> 
> Thanks,
> 
> Roger
> --

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list