<div dir="ltr">Your bounding box in the uri (5,97,21,106):<div><br></div><div>a) is invalid / unrealistic for WGS84 coordinates, and / or</div><div><br></div><div>b) doesn't / wouldn't include your layer extent <span style="font-size:12.7272720336914px">-17.9334 30.5019 -17.7303 30.8789</span></div><div><span style="font-size:12.7272720336914px"><br></span></div><div><span style="font-size:12.7272720336914px">hth</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 March 2015 at 16:04, Ronald Muchini <span dir="ltr"><<a href="mailto:ronaldmuchini@yahoo.com" target="_blank">ronaldmuchini@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
--- On Fri, 3/6/15, Ronald Muchini <<a href="mailto:ronaldmuchini@yahoo.com">ronaldmuchini@yahoo.com</a>> wrote:<br>
<br>
> From: Ronald Muchini <<a href="mailto:ronaldmuchini@yahoo.com">ronaldmuchini@yahoo.com</a>><br>
> Subject: Mapserver displays an empty map using layer from postgis<br>
> To: "ms4w_users" <<a href="mailto:ms4w-users@lists.maptools.org">ms4w-users@lists.maptools.org</a>><br>
> Cc: "ms4w_users" <<a href="mailto:ms4w-users@lists.maptools.org">ms4w-users@lists.maptools.org</a>><br>
> Date: Friday, March 6, 2015, 12:02 AM<br>
> I have a raster layer in postgis,<br>
> which I'm trying to display it in the browser using the<br>
> following code. My Postgis is Installed in the directory,<br>
> "C:\Program Files(x86)\PostgreSQL\9.3\bin" and mapsever<br>
> directory is "C:\ms4w".<br>
><br>
><br>
> MAP<br>
> NAME "Lakes"<br>
> IMAGECOLOR 255 255 255<br>
> SIZE 600 800<br>
> IMAGETYPE PNG24<br>
> PROJECTION<br>
> "init=epsg:4326"<br>
> END<br>
> EXTENT -17.9334 30.5019 -17.7303 30.8789<br>
> WEB<br>
> METADATA<br>
> "ows_enable_request"<br>
> "*"<br>
> "map"<br>
> "C:/ms4w/apps/Lakes/configpg.map"<br>
> "ows_schemas_location"<br>
> "<a href="http://schemas.opengeospatial.net" target="_blank">http://schemas.opengeospatial.net</a>"<br>
> "ows_title"<br>
> "LakesWMS"<br>
> "ows_onlineresource"<br>
> "<a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/Lakes/configpg.map&" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/Lakes/configpg.map&</a>"<br>
> "ows_srs" "EPSG:4326 "<br>
> #latlon <br>
> <br>
> "wms_feature_info_mime_type" "text/plain"<br>
> <br>
> "wms_feature_info_mime_type" "text/html"<br>
> "wms_server_version"<br>
> "1.3.0"<br>
> "wms_formatlist"<br>
> "image/png,image/gif,image/jpeg"<br>
> "wms_format"<br>
> "image/png"<br>
> END #metadata<br>
> END #web<br>
> LAYER<br>
> NAME "ras"<br>
> TYPE RASTER<br>
> STATUS ON<br>
> CONNECTIONTYPE postgis<br>
> CONNECTION "user=postgres password=magodo<br>
> dbname=wqm host=localhost port=5432 options='-c<br>
> client_encoding=UTF8'"<br>
> DATA "geometry FROM testras9 USING UNIQUE<br>
> id USING srid=4326"<br>
> METADATA<br>
> "ows_title" "ras"<br>
> "ows_extent" "<br>
> -17.9334 30.5019 -17.7303 30.8789"<br>
> END #metadata<br>
> PROJECTION<br>
> "init=epsg:4326"<br>
> END<br>
> CLASS<br>
> NAME "ras"<br>
> OUTLINECOLOR 255 255<br>
> 255<br>
> COLOR 137 205 102<br>
> END #class ras<br>
> END #layer ras<br>
> END #map<br>
><br>
><br>
><br>
> Im calling the webpage using the url below:<br>
> "<a href="http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/Lakes/config.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=ras&STYLES=&CRS=EPSG:4326&BBOX=5,97,21,106&WIDTH=600&HEIGHT=800&FORMAT=image/png" target="_blank">http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/Lakes/config.map&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=ras&STYLES=&CRS=EPSG:4326&BBOX=5,97,21,106&WIDTH=600&HEIGHT=800&FORMAT=image/png</a>"<br>
><br>
><br>
> No errors pop up but the browser displays an empty map<br>
> space.<br>
> How can I resolve this issue<br>
><br>
> Thanks in advance<br>
><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br>Ben Madin<div>BVMS PhD, MANZCVS<br><br>t : +61 8 6102 5535<br>m : +61 448 887 220<br>e : <a href="mailto:ben@ausvet.com.au" target="_blank">ben@ausvet.com.au</a><br><br>AusVet Animal Health Services<br>Western Australia<br><br><a href="http://www.ausvet.com.au/" target="_blank">www.ausvet.com.au</a><br></div></div></div>
</div>