[postgis-devel] Initial WKT parser

Ralph Mason ralph.mason at telogis.com
Wed Apr 14 22:48:14 PDT 2004

Attached is the initial wtk->lw_geom parser.

There is also w lw_geom->wkt in there. which could perhaps be 
considered, it's very small and clean.

The parser has no dependencies on anything, parse_WKT function takes and 
allocator function and a  error log function, likewise the unparser.

There is also a build script to make a test app that roundtrips through 
the parser and unparser some test geometries..

It is much more compliant than the old parser, and allows case 
insensitive geometries etc.

You should just need to include wtkparse.h and all should be good.

I am pretty happy with parsing / unparsing system, it should be very 
fast and stable.  It should also be easy to verify as the code is very 

Perhaps we want to do a flex / bison wkb parser also?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: wktparse.tar.gz
Type: application/octet-stream
Size: 29403 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20040415/6797c149/attachment.obj>

More information about the postgis-devel mailing list