<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-7">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have two layers defined as 
follows...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>var mslayer1 = new OpenLayers.Layer.WMS( "SHAPEFILE 
LAYER",&nbsp;<BR>&nbsp;&nbsp;&nbsp; "<A 
href="http://83.212.51.160/cgi-bin/mapserv.exe?map=/ms4w/apps/emmanuel/htdocs/grdata_nomoi_wgs84.map">http://83.212.51.160/cgi-bin/mapserv.exe?map=/ms4w/apps/emmanuel/htdocs/grdata_nomoi_wgs84.map</A>", 
{'layers': 'NOMOI' , 'format':'image/png'});&nbsp;<BR>var mslayer2 = new 
OpenLayers.Layer.WMS( "POSTGIS LAYER", <BR>&nbsp;&nbsp;&nbsp;&nbsp;"<A 
href="http://83.212.51.160/cgi-bin/mapserv.exe?map=/ms4w/apps/emmanuel/htdocs/grdata_nomoi_wgs84.map">http://83.212.51.160/cgi-bin/mapserv.exe?map=/ms4w/apps/emmanuel/htdocs/grdata_nomoi_wgs84.map</A>", 
{'layers': 'MATHITES' , 'format':'image/png'});&nbsp;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and the following map file:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>MAP<BR>&nbsp; 
IMAGETYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; png<BR>&nbsp; 
EXTENT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 19.341085 34.809638 
29.577942 41.757412<BR>&nbsp; 
SIZE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 500 
500<BR>&nbsp; SHAPEPATH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"c:/emmanuel/grdata"<BR>&nbsp; IMAGECOLOR&nbsp;&nbsp;&nbsp;&nbsp; 255 255 
255<BR>&nbsp; UNITS DD</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>PROJECTION<BR>&nbsp;&nbsp; 
"init=epsg:4326"<BR>&nbsp; END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>SYMBOL<BR>&nbsp;&nbsp; NAME 
"Circle"<BR>&nbsp;&nbsp; FILLED true<BR>&nbsp;&nbsp; TYPE 
ellipse<BR>&nbsp;&nbsp; POINTS 1 1 END<BR>END</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>&nbsp; #&nbsp;LAYER SHAPEFILE ---------<BR>&nbsp; 
LAYER<BR>&nbsp;&nbsp;&nbsp; NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
NOMOI<BR>&nbsp;&nbsp;&nbsp; DATA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
NOMOI_wgs84<BR>&nbsp;&nbsp;&nbsp; STATUS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
OFF<BR>&nbsp;&nbsp;&nbsp; TYPE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
POLYGON</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "The Greek 
Prefectures"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 200 200 
200<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 32 32 
32<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END 
#&nbsp;<BR>&nbsp;</DIV>
<DIV>END # </DIV>
<DIV>&nbsp;</DIV>
<DIV><BR># Layer POSTGIS&nbsp;-----------</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;LAYER # Mathites in PostGIS<BR>&nbsp;&nbsp; 
NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MATHITES<BR>&nbsp;&nbsp; 
STATUS ON<BR>&nbsp;&nbsp; TYPE POINT<BR>&nbsp;&nbsp; CONNECTIONTYPE 
POSTGIS<BR>&nbsp;&nbsp; CONNECTION "dbname=postgis 
host=localhost<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
user=postgres password=postgres port=5432"<BR>&nbsp;&nbsp; DATA "the_geom from 
(select the_geom from mathites_wgs84 where id &lt;10)"&nbsp;&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
NAME&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"Mathites"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STYLE&nbsp; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
SYMBOL&nbsp;"Circle"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
SIZE 3<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
COLOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 0 
200<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "init=epsg:4326"</DIV>
<DIV>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;<BR>&nbsp;END</DIV>
<DIV>&nbsp;</DIV>
<DIV>#End of Layer ---------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>=================</DIV>
<DIV>&nbsp;</DIV>
<DIV>The SHAPEFILE layer works fine! Howver I cannot see the POSTGIS layer... 
</DIV>
<DIV>I get an error message "declare mycursor binary cursor..."</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any suggestion would be greatly appreciated !</DIV>
<DIV>&nbsp;</DIV>
<DIV>Emmanuel.</DIV>
<DIV>&nbsp;</DIV>
<DIV></FONT>&nbsp;</DIV></BODY></HTML>