Hola.


Logre instalar PROJ 4
Luego GEOS
Finalmente PostGIS
en un CentOS con PgSQL 8.4

Sin embargo,  cuando corro el script.php

$Q=pg_query('SELECT PostGIS_Full_Version();');
$R=PG_FETCH_ARRAY($Q);
echo '<pre>';
print_r($R);
echo '</pre>';

Me devuelve el error


Warning: pg_query() [function.pg-query]: Query failed: ERROR: function 
postgis_lib_version() does not exist LINE 1: SELECT PostGIS_lib_Version(); ^ 
HINT: No function matches the given name and argument types. You might need to 
add explicit type casts. in /home/gui/public_html/p/t01.php on line23

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given 
in/home/gui/public_html/p/t01.php on line 24



Lo cual no sucede si me logueo como user postgres.

Como puedo hacer para que LAS FUNCIONES POSTGIS sean accesibles 
PARA TODOS LOS USUARIOS ?

Gracias

Responder a