[postgis-devel] Issue 112 in postgis: ST_CurveToLine sometimes crashes server

codesite-noreply at google.com codesite-noreply at google.com
Wed Feb 4 08:04:24 PST 2009


Comment #3 on issue 112 by mark.cav... at siriusit.co.uk: ST_CurveToLine  
sometimes crashes server
http://code.google.com/p/postgis/issues/detail?id=112

Arrgh! I've worked out what's happening here: basically  
pglwgeom_serialize() alters
its input geometry which should be a total no-no. The fix should be to  
remove this
horrible piece of code from pglwgeom_serialize:

#if POSTGIS_AUTOCACHE_BBOX
         if ( ! in->bbox && is_worth_caching_lwgeom_bbox(in) )
         {
                 lwgeom_addBBOX(in);
         }
#endif

and then go around the rest of the codebase fixing up any callers that  
require it.


ATB,

Mark.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings



More information about the postgis-devel mailing list