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

2015-10-14 Thread Roger André
Ahh, thanks! It helps to frame the question correctly. I see now that what I am trying to do is create the hex-encoded form of WKB. On Wed, Oct 14, 2015 at 10:24 AM, Even Rouault wrote: > Le mercredi 14 octobre 2015 19:18:20, Roger André a écrit : > > Yes Even,

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

2015-10-14 Thread Roger André
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

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

2015-10-14 Thread Even Rouault
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 >

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

2015-10-14 Thread Roger André
Yes Even, exportToWkb() was something I tried, but I thought there might be an easy way to get the ASCII form of the WKB, rather than the straight binary that I got when I wrote out to a text file. Norman, thanks for the links. I'll go peruse them. On Wed, Oct 14, 2015 at 10:10 AM, Norman Vine

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

2015-10-14 Thread Norman Vine
On Oct 14, 2015, at 12:59 PM, Roger André wrote: > 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

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

2015-10-14 Thread Even Rouault
Le mercredi 14 octobre 2015 19:18:20, Roger André a écrit : > Yes Even, exportToWkb() was something I tried, but I thought there > might be an easy way to get the ASCII form of the WKB, rather than the > straight binary that I got when I wrote out to a text file. Ah I missed that part. The