[postgis-users] Update on GEOS Integration
Doug_Newcomb at fws.gov
Doug_Newcomb at fws.gov
Mon Jun 2 07:36:09 PDT 2003
Paul,
Thanks !
Doug Newcomb
Paul Ramsey
<pramsey at refractions.net> To: PostGIS Users Discussion <postgis-users at postgis.refractions.net>
Sent by: cc:
postgis-users-bounces at postgis.refr Subject: [postgis-users] Update on GEOS Integration
actions.net
06/01/2003 02:56 PM
Please respond to PostGIS Users
Discussion
We appear to have found a viable workaround to the exception handling
problems described on this list a couple weeks ago.
- The problem was a manifestation of the parent postgres process not
being able to intelligently handle signals raised by the dynamically
linked GEOS library. Specifically, the GEOS library would raise C++
exceptions which the parent postgres process would interpret as
SIGABORT. The postgres process would then terminate before the exception
could be passed on to a piece of code which could handle it.
- The solution turned out to be relatively simple. Dynamically linking
the postgres server with libstdc++, the standard C++ library. Since
everyone currently installing and using PostGIS is either (a) building
thier own postgresql or (b) using a binary provided with PostGIS support
built in by someone else, this build-time solution should be easily
applicable. From a compilation point of view, all that changes is the
invocation of 'configure' when building postgresql. "LDFLAGS=-lstdc++
./configure --your --options --here" will pre-set the linker flags to
include the C++ library, and everything else will procede as normal.
The extremely brave can experiment using the postgis cvs and geos cvs
versions. No bug reports please at this time, only bug fixes, as we
still have not done any due diligence on this code and are time
constrained at the moment.
Thanks all,
Paul
_______________________________________________
postgis-users mailing list
postgis-users at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users
More information about the postgis-users
mailing list