<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2>Bruno -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2>I would suggest not mixing problems at this point - let's 
not worry about ows_ metadata settings until you get the simple image display to 
work properly.&nbsp; Please leave out the METADATA statements until the image 
displays properly; then you'll be able to add the METADATA back in without being 
confused about what settings are helping and what settings are causing 
trouble.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006></SPAN><SPAN 
class=078455019-09082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2>Yes, I suggested UNITS DD because your output and input 
image units are decimal degrees.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2>You should have EXTENT and UNITS statements at the top 
level in your map file, and a PROJECTION block there, too (with the same 
settings as below, as you seem to want to display the image in its native 
unprojected coordinates).&nbsp; Is that the case?&nbsp; Can you post the whole 
map file?&nbsp; Are there other LAYER statements in the 
file?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; - Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=078455019-09082006><!-- Converted from text/plain format -->
<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>ed@topozone.com</FONT> </P></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Bruno Patini Furtado 
[mailto:bpfurtado@gmail.com] <BR><B>Sent:</B> Wednesday, August 09, 2006 1:47 
PM<BR><B>To:</B> Ed McNierney<BR><B>Cc:</B> 
MAPSERVER-USERS@lists.umn.edu<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] Image 
location inside its corner coordinates<BR></FONT><BR></DIV>
<DIV></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>Bruno 
  -</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff 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["degree",0.0174532925199433],<BR><BR></SPAN>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 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-WEIGHT: bold; FONT-FAMILY: courier new,monospace">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 "my DEM Image"</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 "SG-23-V-A.tif"</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; 
"init=epsg:4326"</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 "Some label"</SPAN><BR 
style="FONT-FAMILY: courier new,monospace"><SPAN 
style="FONT-WEIGHT: bold; FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
ows_extent "- 48.000416 -24.000416 -48.001816 -24.001816"</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 "0.00083 -0.00083"</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 "EPSG:4326"</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 "GEOTIFFINT16" </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 "geotiff"</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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 
  size=2>&nbsp;&nbsp;&nbsp; - Ed</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff 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 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:ed@topozone.com" target=_blank>ed@topozone.com</A></FONT> 
  </P></FONT></SPAN></DIV><BR>
  <DIV lang=en-us dir=ltr align=left>
  <HR>
  <FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List [mailto:<A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" 
  target=_blank>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 onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" 
  target=_blank>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["WGS 84",</SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp; 
  DATUM["WGS_1984",</SPAN><BR style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SPHEROID["WGS 84",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["EPSG","7030"]],</SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  AUTHORITY["EPSG","6326"]], </SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp; 
  PRIMEM["Greenwich",0],</SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp; 
  UNIT["degree",0.0174532925199433],</SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp;&nbsp; 
  AUTHORITY["EPSG","4326"]]</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 onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://1.10.1.9" target=_blank>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"W, 24d 0'1.50"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"W, 25d 0'1.50"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"W, 24d 0'1.50"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"W, 25d 0'1.50"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"W, 24d30'1.50"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>"Minds are like 
  parachutes, they work best when open."<BR><BR>Bruno Patini Furtado<BR>Software 
  Developer<BR>webpage: <A 
  onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://bpfurtado.net" target=_blank>http://bpfurtado.net</A><BR>software 
  development blog: <A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="http://bpfurtado.livejournal.com" 
  target=_blank>http://bpfurtado.livejournal.com</A> </SPAN></DIV>
  <DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>"Minds are like 
parachutes, they work best when open."<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> 
</BODY></HTML>