Steve,<br><br>This resolved the issue. I ran `gdalwarp /tmp/image.tiff /tmp/image_inverted.tiff` and it inverted the y axis coordinates again.<br><br>Chris<br><br><br><div class="gmail_quote">On Sun, Apr 17, 2011 at 9:09 AM, Christopher Dedels <span dir="ltr"><<a href="mailto:cdedels@gmail.com">cdedels@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'll look into the N-S coordinates. I am using gdal_grid to create a grid from a point layer and then using gdal_contour to create a line layer from the grid. The input point layer and output line layer seem to have the right N-S coordinates and display on my map just fine.<br>
<br>Thanks,<br><br>Chris<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Sun, Apr 17, 2011 at 12:11 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">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">Sorry, you had posted the gdalinfo, I was rushing out the door and missed that. But looking at it the image extents looks strange, it seems that the north-south coordinates are inverted.<div>
<br>
<br>
Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N)<br>
Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N)<br>
Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N)<br>
Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N)<br>
<br></div>
lower left should be the xmin, ymin and upper right should be the xmax, ymax values and so that looks weird.<br>
<br>
Otherwise I'm not seeing a problem. You might need to specify an image mode that you want mapserver to render you image in:<br>
<br>
IMAGETYPE jpeg<div><br>
<br>
-Steve W<br>
<br>
On 4/16/2011 5:52 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><div></div><div>
gdalinfo output for my raster file is:<br>
<br>
Driver: GTiff/GeoTIFF<br>
Files: /tmp/image.tiff<br>
Size is 800, 600<br>
Coordinate System is:<br>
GEOGCS["WGS 84",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS 84",6378137,298.257223563,<br>
AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4326"]]<br>
Origin = (-123.860031127930000,38.011638641357401)<br>
Pixel Size = (0.033339290618897,0.026156539916992)<br>
Metadata:<br>
AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d 0'41.90"N)<br>
Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W, 53d42'20.03"N)<br>
Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d 0'41.90"N)<br>
Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W, 53d42'20.03"N)<br>
Center (-110.5243149, 45.8586006) (110d31'27.53"W, 45d51'30.96"N)<br>
Band 1 Block=800x2 Type=Float32, ColorInterp=Gray<br>
<br>
Regards,<br>
<br>
Chris<br>
<br>
On Sat, Apr 16, 2011 at 5:47 PM, Stephen Woodbridge<br></div></div><div>
<<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></div><div><div></div><div>
What does:<br>
<br>
gdalinfo /tmp/image.tif<br>
<br>
report?<br>
<br>
-Steve W<br>
<br>
<br>
<br>
On 4/16/2011 4:52 PM, Christopher Dedels wrote:<br>
<br>
Hmmm...missed that one. But changing the units to dd still<br>
doesn't have<br>
any effect.<br>
<br>
I am using mapserver 4.8.1. DEBUG is not an option in this version.<br>
mapserv -v produces the following output:<br>
<br>
MapServer version 4.8.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG<br>
OUTPUT=WBMP<br>
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER<br>
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" target="_blank">http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP</a><br>
<<a href="http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP" target="_blank">http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP</a>><br>
<<a href="http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP" target="_blank">http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP</a><br>
<<a href="http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP" target="_blank">http://localhost/cgi-bin/mapserv?MAP=/tmp/mapNl7O7H.map&LAYERS=ALL&MODE=MAP</a>>><br>
<br>
gdalinfo output for my raster file is:<br>
<br>
Driver: GTiff/GeoTIFF<br>
Files: /tmp/image.tiff<br>
Size is 800, 600<br>
Coordinate System is:<br>
GEOGCS["WGS 84",<br>
DATUM["WGS_1984",<br>
SPHEROID["WGS 84",6378137,298.257223563,<br>
AUTHORITY["EPSG","7030"]],<br>
AUTHORITY["EPSG","6326"]],<br>
PRIMEM["Greenwich",0],<br>
UNIT["degree",0.0174532925199433],<br>
AUTHORITY["EPSG","4326"]]<br>
Origin = (-123.860031127930000,38.011638641357401)<br>
Pixel Size = (0.033339290618897,0.026156539916992)<br>
Metadata:<br>
AREA_OR_POINT=Area<br>
Image Structure Metadata:<br>
INTERLEAVE=BAND<br>
Corner Coordinates:<br>
Upper Left (-123.8600311, 38.0116386) (123d51'36.11"W, 38d<br>
0'41.90"N)<br>
Lower Left (-123.8600311, 53.7055626) (123d51'36.11"W,<br>
53d42'20.03"N)<br>
Upper Right ( -97.1885986, 38.0116386) ( 97d11'18.96"W, 38d<br>
0'41.90"N)<br>
Lower Right ( -97.1885986, 53.7055626) ( 97d11'18.96"W,<br>
53d42'20.03"N)<br>
Center (-110.5243149, 45.8586006) (110d31'27.53"W,<br>
45d51'30.96"N)<br>
Band 1 Block=800x2 Type=Float32, ColorInterp=Gray<br>
<br>
Regards,<br>
<br>
Chris<br>
<br>
<br>
On Sat, Apr 16, 2011 at 4:34 PM, Stephen Woodbridge<br>
<<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>><br></div></div><div><div>
</div><div>
<mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a><br>
<mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>>>> wrote:<br>
<br>
On 4/16/2011 4:33 PM, Christopher Dedels wrote:<br>
<br>
Thanks for the suggestion. I have tried it and it<br>
appears to<br>
have no<br>
effect.<br>
<br>
Chris<br>
<br>
<br>
On Sat, Apr 16, 2011 at 4:26 PM, Stephen Woodbridge<br>
<<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>><br>
<mailto:<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>>><br>
<mailto:<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>><br>
<br>
<mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a><br>
<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<br>
to my<br>
map. The<br>
image<br>
produced by mapserver is blank. My mapfile is<br>
as follows:<br>
<br>
MAP<br>
SIZE 800 600<br>
UNITS meters<br>
<br>
<br>
This is a problem, Your UNITs are meters, but your extents and<br>
projection are DD!<br>
<br>
<br>
EXTENT -123.8600311 38.0116386 -97.1885986<br>
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<br>
file which<br>
does not<br>
exist in the filesystem (or is not a<br>
GDAL-supported file<br>
format)<br>
has no<br>
effect on the rendered output and does not<br>
produce an<br>
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>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>>><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>>>><br>
<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>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<mailto:<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>
<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>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<mailto:<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>>><br>
<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>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<mailto:<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>
<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a> <mailto:<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>
<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></div></blockquote><div><div></div><div>
<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>
</div></div></blockquote></div><br>