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> <<a href="mailto:ed@topozone.com">ed@topozone.com</a>> 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> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Could you post the EXTENT statement you're using? 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;"> 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;"> UNIT["degree",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;"> LAYER</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> NAME "my DEM Image"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> STATUS OFF</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> TYPE RASTER</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> DUMP TRUE</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> DATA "SG-23-V-A.tif"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> PROJECTION</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> "init=epsg:4326"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> END</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;"> wcs_label "Some label"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace; font-weight: bold;"> 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;"> wcs_resolution "0.00083 -0.00083"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> ows_srs "EPSG:4326"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> wcs_formats "GEOTIFFINT16"
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> wcs_nativeformat "geotiff"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
END</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 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"> - 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 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["WGS 84",</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
DATUM["WGS_1984",</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
SPHEROID["WGS 84",6378137,298.2572235630016,</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
AUTHORITY["EPSG","7030"]],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
AUTHORITY["EPSG","6326"]], </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
PRIMEM["Greenwich",0],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
UNIT["degree",0.0174532925199433],</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
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;">
AREA_OR_POINT=Area </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 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;">
TIFFTAG_XRESOLUTION=1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
TIFFTAG_YRESOLUTION=1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 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 ( -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 ( -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
( -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;"> 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 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>"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>