[postgis-users] postgis connection problem

benedetto.porfidia porfidia at anpa.it
Thu Aug 8 11:55:02 PDT 2002


Hi All
I installed postgis 0.71 on postgrasql 7.2.1 and all works fine
then installed mapserver 3.6.1 with the following config options:
./configure -prefix=/usr/local/mapserver-3.6.1/
--with-proj=/home/porfidia/proj-4.4.5 --with-ogr
--with-gdal=/usr/local/gdal-1.1.7/apps/gdal-config --with-wmsclient
--with-postgis=/usr/local/pgsql/bin/pg_config
and all seems good couse if tipe ./mapserv I get : This
script...........
but when I try to connect MS to Postgis with the following mapfile i
can't get anything
mapfile
#
#begin object map
#
NAME Postgis&postgreSQL
UNITS meters
EXTENT 0 4037663 1500000 5264500
SIZE 640 480
LAYER
CONNECTIONTYPE postgis
NAME "faults_it"
# connect to a remote spatial db
CONNECTION "user=postgres dbname=dbtest host=10.158.1.126 port=5432"
# Get the lines from the 'geom' column of the 'faults_it' table
DATA "the_geom from faults_it"
STATUS ON
TYPE LINE
#Of the lines in the extents, only render all
COLOR 255 22 22
SYMBOL "solid"
SIZE 4
END

postmaster runs with -i option
and no error appears in terminal window
where am I wrong
Anyone can help me?





More information about the postgis-users mailing list