[geos-devel] GEOS C API - WKB and WKT deprecated functions

Charlie Savage cfis at savagexi.com
Tue Oct 30 19:19:23 EDT 2007


> On 29/10/2007, *Benjamin Chartier* <benjamin.chartier at cegetel.net 
> <mailto:benjamin.chartier at cegetel.net>> wrote:
> 
>     Justin and Charlie, many thanks for your answers.
>     By the way, is there a ggod reason why the Reader and Writer API should
>     be used in stead of the deprecated functions? Is there any performance
>     issue?
> 
> 
> You can do things like write EWKT/EWKB which aren't possible using the 
> old C API.

That's the most important thing.  But also:

* the old api used global static variables for storing the byte order 
and output dimensions.  So on the off hand chance you wanted to write 
out 2d and 3d outputs in 2 different threads you couldn't do it.

* the old api forced a creation of a new reader/writer each time you 
called it.  Probably not a big deal, but the new api let's you control 
that so you can reuse the same reader/writer.

Hope that helps,

Charlie


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/geos-devel/attachments/20071030/24afcd53/smime.bin


More information about the geos-devel mailing list