[geos-devel] Exception Issues
David Blasby
dblasby at refractions.net
Tue May 27 17:31:42 EDT 2003
> What we havent tried:
>
> 1. linking postgresql to libc++. This should work, but we dont want to have a special 'postgis' version of postgresql hanging around.
I did this - works like a charm (I think).
Compile postgresql with something like:
LDFLAGS=-lstdc++ ./configure --prefix=/opt/pgsql73 --with-debug
make clean;make; make install
dblasby=# select relate('LINESTRING(0 0,0 0)'::geometry, 'LINESTRING(0
0,0 0)'::geometry );
NOTICE: in relate_full()
NOTICE: GEOS init()
NOTICE: constructed geometries
NOTICE: LINESTRING (0.0000000000000000 0.0000000000000000,
0.0000000000000000 0.0000000000000000)
NOTICE: LINESTRING (0.0000000000000000 0.0000000000000000,
0.0000000000000000 0.0000000000000000)
NOTICE: valid g1 = 0
NOTICE: valid g2 = 0
NOTICE: about to relate()
NOTICE: finished relate()
ERROR: GEOS relate() threw an error!
and the server output:
[postgres at hydra init.d]$ /opt/pgsql73/bin/postmaster -i -D
/raid/pgdata/pgsql_devel_73
LOG: database system was shut down at 2003-05-27 14:24:27 PDT
LOG: checkpoint record is at 0/E955DA8
LOG: redo record is at 0/E955DA8; undo record is at 0/0; shutdown TRUE
LOG: next transaction id: 6708; next oid: 577113
LOG: database system is ready
FATAL: Database "geos" does not exist in the system catalog.
NOTICE: in relate_full()
NOTICE: GEOS init()
NOTICE: constructed geometries
NOTICE: LINESTRING (0.0000000000000000 0.0000000000000000,
0.0000000000000000 0.0000000000000000)
NOTICE: LINESTRING (0.0000000000000000 0.0000000000000000,
0.0000000000000000 0.0000000000000000)
NOTICE: valid g1 = 0
NOTICE: valid g2 = 0
NOTICE: about to relate()
In GeometryCAPI::relate and about to g1->relate(g2)
caught error in GeometryCAPI::relate
NOTICE: finished relate()
ERROR: GEOS relate() threw an error!
dave
More information about the geos-devel
mailing list