Mateusz Loskot wrote:
> Artem Pavlenko wrote:
>> On 10/08/07, Andrew Larcombe <[EMAIL PROTECTED]> wrote:
>>>
>>> On 10 Aug 2007, at 21:05, Mateusz Loskot wrote:
>>>
>>> > Andrew Larcombe wrote:
>>> >> Although it's not on the list of supported formats, I *swear* ogr
>>> >> does wkt/wkb.
>>> >>
>>> >> gdal.org/ogr
>>> >
>>> > Yes, it does, but OGR is written in C++ and requires C++ compiler.
>>> >
>>>
>>> Sorry, my bad. Mateusz is right - it has a C API built over the C++
>>> code. :(
>>>
>>
>> Just to keep this thread going. I've written WKT parser a couple year
>> ago in *C++* using boost::spirit - really fast.
>
> Artem,
>
> Great news!
> Some time ago I started implementing similar thing, using Boost.Spirit.
>
> Here is my grammar and validation stuff:
>
> http://mloskot.devjavu.com/projects/mloskot/browser/wkt/trunk
>
> I've had no chance to finish it due to lack of time, but it's
> still on my TODO list :-)

Ah, forgot, and here is a piece of implementing of (E)WKB parsing:

http://svn.osgeo.org/fdo/trunk/Providers/PostGIS/Src/Provider/PgGeometry.h
http://svn.osgeo.org/fdo/trunk/Providers/PostGIS/Src/Provider/PgGeometry.cpp

It's a simple state machine prepared for FDO driver but there are
some scraps of code that may be interesting for WKB parser implementors.
Based on boost:: and std::

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net
_______________________________________________
Geowanking mailing list
[email protected]
http://lists.burri.to/mailman/listinfo/geowanking

Reply via email to