<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">It looks like you are missing a quote in your data statement  after "'asdf " and my have an extra one at the end?<br><br>That might help...<br><br>Brent Wood<br><br>--- On <b>Sat, 5/12/12, abhishek bansal <i><discover.ab@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: abhishek bansal <discover.ab@gmail.com><br>Subject: [postgis-users] PostGIS Raster with Map Server<br>To: postgis-users@postgis.refractions.net<br>Date: Saturday, May 12, 2012, 2:27 AM<br><br><div id="yiv197223201">hello all,<br><br>I am very new to all this Geo-spatial world. I am using map server to display my maps in browser. I am also using Postgres and PostGIS raster to store my tiff images in database. now I need to configure mapserver map file to display this tiff file which is stored
 in database. I googled a lot and found this technique which is not working for me i.e. my raster image does not show up while using GetMap.<br>
<br>I created my raster using following command<br>raster2pgsql -s 4326 -I -C -M my.tif -F -t 100x100 public.asdf > elev.sql<br><br>than I imported this sql file into my PostGIS database using postgres PG Admin 3.<br><br>
My map file layer config is as follows:<br>LAYER <br>    METADATA<br>      "wms_title"    "rasterlayer"  ##required<br>    END<br>    NAME         rasterlayer<br>    CONNECTIONTYPE postgis<br>        <br>
    DATA "PG:host=localhost port:5432 dbname='postgis' user='postgres' password='something' schema='public' table='asdf mode='2''" <br>    PROCESSING "NODATA=0"<br>
    PROCESSING "SCALE=AUTO"<br>    <br>    STATUS       ON<br>    TYPE         RASTER<br>    PROCESSING   "BANDS=1,2,3"<br>    OFFSITE      71 74 65<br>END<br><br>I found this in postGIS documentation.<br>
this return me a empty image in browser.<br>Plz help !!<br><br clear="all"><br>-- <br>Thanks & Regards,<br>Abhishek Bansal<br><a rel="nofollow" target="_blank" href="http://abhishekbansal.miyuri.com">http://abhishekbansal.miyuri.com</a><br>
Jaypee Institute of Information Technology, Noida<br><br><br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>postgis-users mailing list<br><a ymailto="mailto:postgis-users@postgis.refractions.net" href="/mc/compose?to=postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br></div></blockquote></td></tr></table>