<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
&nbsp;<BR>
Thanks Jeff!<BR>
&nbsp;<BR>
Just to share with those that have the same problem, I was having issues rendering PNG (changing to GIF worked the way I want) and the world file was missing too (I thought Mapserver would get the bounding box from the postgis database).<BR>
&nbsp;<BR>
Nelson<BR>&nbsp;<BR>&gt; Date: Mon, 31 Aug 2009 10:01:00 -0300<BR>&gt; From: jmckenna@gatewaygeomatics.com<BR>&gt; To: mapserver-users@lists.osgeo.org<BR>&gt; Subject: Re: [mapserver-users] Postgis tile index not working<BR>&gt; <BR>&gt; Nelson Correia wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt; <BR>&gt; &gt; I'm trying to use a postgis layer as tile index of a raster layer and <BR>&gt; &gt; can't get it working.<BR>&gt; &gt; Here are the layers I'm using:<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt; LAYER<BR>&gt; &gt; NAME "layer_tindex"<BR>&gt; &gt; TYPE POLYGON<BR>&gt; &gt; CONNECTIONTYPE POSTGIS<BR>&gt; &gt; CONNECTION "host=localhost port=5432 dbname=mydb <BR>&gt; &gt; user=myuser password=mypwd"<BR>&gt; &gt; DATA "bbox from shapes"<BR>&gt; &gt; CLASS<BR>&gt; &gt; STYLE<BR>&gt; &gt; OUTLINECOLOR 0 0 0<BR>&gt; &gt; END<BR>&gt; &gt; END<BR>&gt; &gt; END<BR>&gt; &gt; LAYER<BR>&gt; &gt; NAME "layer_raster"<BR>&gt; &gt; TYPE RASTER<BR>&gt; &gt; STATUS DEFAULT<BR>&gt; &gt; DUMP TRUE<BR>&gt; &gt; TILEINDEX "layer_tindex"<BR>&gt; &gt; TILEITEM "image_path"<BR>&gt; &gt; PROJECTION<BR>&gt; &gt; "init=epsg:4326"<BR>&gt; &gt; END<BR>&gt; &gt; END<BR>&gt; &gt; <BR>&gt; &gt; When I make a request to Mapserver, everything gets into the image, <BR>&gt; &gt; except the images from the "layer_raster" layer. I can even see the <BR>&gt; &gt; bboxes if I turn on the layer "layer_tindex".<BR>&gt; &gt; <BR>&gt; &gt; I can't find much documentation about this integration between Mapserver <BR>&gt; &gt; and Postgis, so tell me if I'm making some mistake.<BR>&gt; &gt; <BR>&gt; &gt; By the way, I'm doing this with a Mapserver 5.2.1.<BR>&gt; &gt; <BR>&gt; &gt; Thanks in advance,<BR>&gt; &gt; <BR>&gt; <BR>&gt; I would start by using the commandline utility shp2img with the <BR>&gt; '-all_debug 3' switch to see all errors (example#3 on <BR>&gt; http://www.mapserver.org/utilities/shp2img.html).<BR>&gt; <BR>&gt; -jeff<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Jeff McKenna<BR>&gt; FOSS4G Consulting and Training Services<BR>&gt; http://www.gatewaygeomatics.com/<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; mapserver-users mailing list<BR>&gt; mapserver-users@lists.osgeo.org<BR>&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<BR><br /><hr />Share your memories online with anyone you want <a href='http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1' target='_new'>anyone you want.</a></body>
</html>