shp2img works fine but mapserv does not.

Athanasios Lois lois at UTH.GR
Thu Sep 15 13:02:43 EDT 2005


hi there, 

I have a situation where shp2img works with a postgis connection and
mapserv does not. Postgis support was properly compiled into 
shp2img and the same for  mapserv.

When a web page is calling mapserver with postgis connection does not show anything, instead it works fine with shp files. 

Program shp2img works fine for the same map file and produces the appropriate image file

map file is 
-----------------

MAP
 NAME APPLE
 STATUS ON
EXTENT -87.9781 41.8109 -87.603 42.117
SIZE 300 300
IMAGETYPE GIF

LAYER
CONNECTIONTYPE postgis
NAME "CBVMS"
CONNECTION "user=test password=123456 dbname=gis host=127.0.0.1"
DATA "geometry from cbvms_nodes"
STATUS DEFAULT
TYPE LINE
CLASS
 COLOR 0 0 255
END
END
END



Map server options
--------------------

[root at loisoffice cbvms]# ./mapserv -v
MapServer version 4.6.1 OUTPUT=GIF OUTPUT=WBMP OUTPUT=SVG SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=SHAPEFILE

 
is there any help for the above situation ?

Thanks in advance. 
T. Lois



More information about the mapserver-users mailing list