[GRASSLIST:7450] grass 6.0 and postgis

Hi all,

I was trying to import a vector database stored on
postgis but I wasn't able to do so. Is there a way to
do so? I tried to use ogrinfo, ogr2ogr without
success, but I thought this was because I didn't
compile gdal with postgresql support. I've been trying
to do so without success; it just can't load a pq
library even though it's in the right directory.
Is anyone using postgis tables on GRASS 6.0?

Thanks,

Jaime

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/

Hi all,

To answer my own question:
When I compiled gdal I used
--with-pg=/usr/local/pgsql/bin/pg_config which shows
that the postgres libraries are under
/usr/local/pgsql/lib. However it seems that ogr looks
for libpq.so.3 under /usr/lib. I solved this by
copying the libpq.so.3 to /usr/lib, however I find it
strange that if pg_config tells gdal that the pgsql
libs are under a specifi directory it keeps looking
for the libs under /usr/lib/

Cheers,

Jaime
--- Jaime Carrera <jaicarrerahdez@yahoo.com>
escribió:

Hi all,

I was trying to import a vector database stored on
postgis but I wasn't able to do so. Is there a way
to
do so? I tried to use ogrinfo, ogr2ogr without
success, but I thought this was because I didn't
compile gdal with postgresql support. I've been
trying
to do so without success; it just can't load a pq
library even though it's in the right directory.
Is anyone using postgis tables on GRASS 6.0?

Thanks,

Jaime

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y
antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/