Hi Ed, <br><span style="font-family: courier new,monospace;"></span><br><div><span class="gmail_quote">On 8/9/06, <b class="gmail_sendername">Ed McNierney</b> &lt;<a href="mailto:ed@topozone.com">ed@topozone.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>



<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Bruno -</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Could you post the EXTENT statement you're using?&nbsp; Two 
things to check - UNITS DD should be there (should not affect this problem, 
however) and your EXTENT needs to be in the order MINX MINY MAXX MAXY, so it 
should be:<br></font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">EXTENT -48.0004159 -25.0004164 -46.5004159 
-24.0004163</font></span></div></div></div></blockquote><div>My extent is indeed like you said it should be:<br>
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163<br><br></span></div>It was because of the line below that you state that the units should be Decimal Degrees?<br>

<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<br><br></span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div><div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Your image is 
1.5 degrees wide (X dimension) and 1 degree 
tall (Y dimension) so your output image size should also be that shape (600 
pixels wide by 400 pixels high, for example) or you will see the map shrunk to 
fit the shape of the image.</font></span></div></div></div></blockquote><div><br>Your example shows the right proportion as <span style="font-family: courier new,monospace;">gdalinfo </span>tells the image is [1800, 1200] but I would like to set the layer metadata
<span style="font-family: courier new,monospace; font-weight: bold;"> ows_extent</span>  with the actual image coordinates, not size, in order to show the image a bit better in the MapServer demo. Below goes my mapinfo layer element as I'm trying to configure it.
<br><br><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; LAYER</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;my DEM Image&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS OFF</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DUMP TRUE</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA &quot;SG-23-V-A.tif&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;init=epsg:4326&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_label &quot;Some label&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace; font-weight: bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_extent &quot;-
48.000416 -24.000416 -48.001816 -24.001816&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_resolution &quot;0.00083 -0.00083&quot;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_srs &quot;EPSG:4326&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_formats &quot;GEOTIFFINT16&quot;
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_nativeformat &quot;geotiff&quot;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; END<br><br></span><br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div><div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">&nbsp;&nbsp;&nbsp; - Ed</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">
<p><font size="2">Ed McNierney<br>President and Chief Mapmaker<br>TopoZone.com / 
Maps a la carte, Inc.<br>73 Princeton Street, Suite 305<br>North Chelmsford, 
MA&nbsp; 01863<br>Phone: +1 (978) 251-4242<br>Fax: +1 (978) 
251-1396<br><a href="mailto:ed@topozone.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ed@topozone.com</a></font> </p></font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> UMN MapServer Users List 
[mailto:<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MAPSERVER-USERS@LISTS.UMN.EDU</a>] <b>On Behalf Of </b>Bruno Patini 
Furtado<br><b>Sent:</b> Wednesday, August 09, 2006 10:59 AM<br><b>To:</b> 
<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MAPSERVER-USERS@LISTS.UMN.EDU</a><br><b>Subject:</b> [UMN_MAPSERVER-USERS] Image 
location inside its corner coordinates<br></font><br></div></div><div><span class="e" id="q_10cf3b9e9efae364_1">
<div></div>I have a DEM image of which below I've copied the <span style="font-family: courier new,monospace;">gdalinfo </span>output. <br><br style="font-family: courier new,monospace;">
<div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">Driver: GTiff/GeoTIFF</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Size is 1800, 1200
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Coordinate System is:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
GEOGCS[&quot;WGS 84&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 
DATUM[&quot;WGS_1984&quot;,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
SPHEROID[&quot;WGS 84&quot;,6378137,298.2572235630016,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 
PRIMEM[&quot;Greenwich&quot;,0],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 
UNIT[&quot;degree&quot;,0.0174532925199433],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp;&nbsp;&nbsp; 
AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Origin = 
(-48.000416,-24.000416)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Pixel Size = (0.00083333,-0.00083333 
)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Metadata:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp; AREA_OR_POINT=Area </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; TIFFTAG_SOFTWARE=IMAGINE TIFF 
Support</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Copyright 1991 - 1999 by ERDAS, Inc. 
All Rights Reserved</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">@(#)$RCSfile: etif.c $ $Revision: <a href="http://1.10.1.9" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
1.10.1.9</a> $ $Date: 2003/11/13 19:25:49EST $</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; 
TIFFTAG_XRESOLUTION=1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; 
TIFFTAG_YRESOLUTION=1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; TIFFTAG_RESOLUTIONUNIT=1 
(unitless)</span> <br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Corner Coordinates:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
Upper Left&nbsp; ( -48.0004159, 
-24.0004163) ( 48d 0'1.50&quot;W, 24d 0'1.50&quot;S)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Lower Left&nbsp; ( -48.0004159, 
-25.0004164 ) ( 48d 0'1.50&quot;W, 25d 0'1.50&quot;S)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Upper Right ( -46.5004159, 
-24.0004163) ( 46d30'1.50&quot;W, 24d 0'1.50&quot;S) </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Lower Right ( -46.5004159, 
-25.0004164) ( 46d30'1.50&quot;W, 25d 0'1.50&quot;S)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
( -47.2504159, -24.5004163) ( 47d15'1.50&quot;W, 24d30'1.50&quot;S)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Band 1 Block=1800x2 Type=UInt16, 
ColorInterp=Gray</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">&nbsp; Overviews: 450x300, 225x150, 
113x75, 57x38</span><br clear="all"></div><br>I could take from it the EXTENT to 
use in my Mapfile using the <span style="font-style: italic;">Lower Left 
</span>and <span style="font-style: italic;">Upper Right </span>coordinates. But 
the problem is that the image is to small inside this coordinates and I can't 
find the image location inside then by this output. Is there some other utility 
to get this coordinates? <br><br><br>-- <br>&quot;Minds are like parachutes, they 
work best when open.&quot;<br><br>Bruno Patini Furtado<br>Software 
Developer<br>webpage: <a href="http://bpfurtado.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://bpfurtado.net</a><br>software development 
blog: <a href="http://bpfurtado.livejournal.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://bpfurtado.livejournal.com</a> 
</span></div><div></div>

</div></blockquote></div><br><br clear="all"><br>-- <br>&quot;Minds are like parachutes, they work best when open.&quot;<br><br>Bruno Patini Furtado<br>Software Developer<br>webpage: <a href="http://bpfurtado.net">http://bpfurtado.net
</a><br>software development blog: <a href="http://bpfurtado.livejournal.com">http://bpfurtado.livejournal.com</a>