<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=2>Hi everyone, I have
a problem generating an image from my postgis database I have
attached my php script. No errors are returned when the script is run,
just a blank image is returned. Can anyone see whats wrong with my
script? Cheers</FONT></SPAN></DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial
size=2>bm</FONT></SPAN></DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial
size=2><php-script_start></FONT></SPAN></DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=1>$map =
ms_newMapObj("");<BR>$map->setSize(600, 300);<BR>$temp =
$map->setExtent(-180, -90, 180, 90);</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=1>//define path where
to creat image<BR>$map->web->set("imagepath",
"./data/");<BR>$map->web->set("imageurl",
"./data/");<BR>$map->web->set("log",
"./data/logfile.txt");</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=1>//crate parcel
layer, associate it withthe map<BR>$parcelLayer =
ms_newLayerObj($map);<BR>$parcelLayer->set("connectiontype",
MS_POSTGIS);<BR>$parcelLayer->set("name", "parcels
layer");</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=1>$connector =
"user=username dbname=test
host=localhost";<BR>$parcelLayer->set("connection",
$connector);</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=1>$sql = "the_geom
from parcels";<BR>$parcelLayer->set("data", $sql);</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial
size=1>$parcelLayer->set("status",
MS_DEFAULT);<BR>$parcelLayer->set("type",
MS_LAYER_POLYGON);<BR></FONT></SPAN></DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=1>$parcelClass =
ms_newClassObj($parcelLayer);<BR>$parcelClass->set("name", "parcels
class");</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=1></FONT> </DIV>
<DIV><SPAN class=558410823-04092007><FONT face=Arial><FONT size=1>$parcelStyle =
ms_newStyleObj($parcelClass);<BR>$parcelStyle->color->setRGB( 250, 0,
0);<BR>$parcelStyle->outlinecolor->setRGB( 255, 255,
255);<BR></FONT></FONT></SPAN><SPAN class=558410823-04092007><FONT
face=Arial><FONT size=1>$parcelStyle->set("symbolname",
"circle");<BR>$parcelStyle->set("size",
10);<BR></DIV></FONT></FONT></SPAN><SPAN class=558410823-04092007><FONT
face=Arial size=2><SPAN class=558410823-04092007><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN>
<DIV><SPAN class=558410823-04092007><FONT face=Arial size=2><SPAN
class=558410823-04092007><FONT face=Arial
size=2><php-script_end></FONT></SPAN></FONT></SPAN></DIV>
<FONT face=Arial size=2>
<HR>
This e-mail message has been scanned for viruses by <FONT
color=#ff8000><STRONG><FONT color=#400080>McAfee</FONT> </STRONG></FONT>and the
content has been cleared by <STRONG><FONT color=#400080>MailMarshal</FONT>
</STRONG>
<HR>
</FONT>
</BODY></HTML>