Hmmm...missed that one. But changing the units to dd still doesn't have any effect. <br><br>I am using mapserver 4.8.1. DEBUG is not an option in this version. mapserv -v produces the following output:<br><br>MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE<br>
<br>My request uri is:<br><a href="http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP">http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP</a><br><br>gdalinfo output for my raster file is: <br>
<pre style="font-family: courier new,monospace;">Driver: GTiff/GeoTIFF
Files: /tmp/image.tiff
Size is 800, 600
Coordinate System is:
GEOGCS["WGS 84",
DATUM["WGS_1984",
SPHEROID["WGS 84",6378137,298.257223563,
AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433],
AUTHORITY["EPSG","4326"]]
Origin = (-123.860031127930000,38.011638641357401)
Pixel Size = (0.033339290618897,0.026156539916992)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N)
Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N)
Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N)
Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N)
Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N)
Band 1 Block=800x2 Type=Float32, ColorInterp=Gray</pre>Regards,<br><br>Chris<br><br><br><div class="gmail_quote">On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 4/16/2011 4:33 PM, Christopher Dedels wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Thanks for the suggestion. I have tried it and it appears to have no<br>
effect.<br>
<br>
Chris<br>
<br>
<br>
On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge<br></div><div class="im">
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>>> wrote:<br>
<br>
Try changing the layer status to default, ie:<br>
<br>
STATUS DEFAULT<br>
<br>
-Steve W<br>
<br>
<br>
On 4/16/2011 2:22 PM, Christopher Dedels wrote:<br>
<br>
I am having some problems adding a raster layer to my map. The<br>
image<br>
produced by mapserver is blank. My mapfile is as follows:<br>
<br>
MAP<br>
SIZE 800 600<br>
UNITS meters<br>
</div></blockquote>
<br>
This is a problem, Your UNITs are meters, but your extents and projection are DD!<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
EXTENT -123.8600311 38.0116386 -97.1885986 53.7055626<br>
<br>
PROJECTION<br>
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"<br>
END<br>
<br>
LAYER<br>
NAME "grid"<br>
TYPE RASTER<br>
DATA "/tmp/image.tiff"<br>
STATUS ON<br>
PROJECTION<br>
"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs"<br>
END<br>
END<br>
END<br>
<br>
I have also noticed that changing the DATA path to a file which<br>
does not<br>
exist in the filesystem (or is not a GDAL-supported file format)<br>
has no<br>
effect on the rendered output and does not produce an error message.<br>
<br>
Can somebody help me where I am going wrong?<br>
<br>
Thanks<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br></div>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><div class="im"><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br>