<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div>Hi, i&#39;m new at this and i&#39;m trying to connect to postgis raster in the mapfile.</div>

<div>I loaded a tif file into postgis raster database. It created a table with 2 fields.</div><div>
In the mapfile i added the connection like it specifies in the postgis raster FAQ but it doesnt displays a thing:</div><div><br></div><div><span style="border-collapse:collapse;color:rgb(46, 46, 46);font-family:&#39;Lucida Grande&#39;, Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:13px"><pre style="border-right-width:0px;border-left-width:0px;border-bottom-width:2px;border-top-width:2px;font-family:&#39;Courier New&#39;, Courier, Monaco, monospace;line-height:16px;border-top-color:rgb(247, 147, 30);border-right-color:rgb(247, 147, 30);border-bottom-color:rgb(247, 147, 30);border-left-color:rgb(247, 147, 30);border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;font-size:11px;margin-bottom:10px;margin-top:10px;overflow-x:auto;overflow-y:auto;padding-top:10px;padding-right:10px;padding-bottom:10px;padding-left:10px;background-color:rgb(248, 248, 249);background-repeat:initial initial">

LAYER
        NAME coolwktraster
        TYPE raster
        STATUS ON
        DATA &quot;PG:host=localhost port=5432 dbname=&#39;somedb&#39; user=&#39;someuser&#39; password=&#39;whatever&#39; 
                schema=&#39;someschema&#39; table=&#39;cooltable&#39; mode=&#39;2&#39;&quot;        
        PROCESSING &quot;NODATA=0&quot;
        PROCESSING &quot;SCALE=AUTO&quot;
        #... other standard raster processing functions here
        #... classes are optional but useful for 1 band data
        CLASS
                NAME &quot;boring&quot;
                EXPRESSION ([pixel] &lt; 20)
                COLOR 250 250 250
        END
        CLASS
                NAME &quot;mildly interesting&quot;
                EXPRESSION ([pixel] &gt; 20 AND [pixel] &lt; 1000)
                COLOR 255 0 0
        END
        CLASS
                NAME &quot;very interesting&quot;
                EXPRESSION ([pixel] &gt;= 1000)
                COLOR 0 255 0
        END
END</pre></span></div><div><br></div><div>the mode=2 i deleted it because its for other postgis version, i have postgis 1.5.2.</div><div><br></div><div>Could you help me with this? Could someone connect with success?</div>


<div><br></div><div>Thank you!</div><div><br></div><div>Viriginia</div><div> </div></div>
</blockquote></div><br>