<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Bruno Patini Furtado<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, August 10, 2006
3:51 PM<br>
<b><span style='font-weight:bold'>To:</span></b> MAPSERVER-USERS@LISTS.UMN.EDU<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [UMN_MAPSERVER-USERS]
Image location inside its corner coordinates</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi Ed,<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 8/9/06, <b><span style='font-weight:bold'>Ed
McNierney</span></b> &lt;<a href="mailto:ed@topozone.com">ed@topozone.com</a>&gt;
wrote:</span></font></span><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Bruno -</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>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.</span></font><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
My original motivation to adjust the </span></font><font face="Courier New"><span
style='font-family:"Courier New"'>ows_extent</span></font> was to treat this
problem but following your advice e changing the units to decimal degrees my
zoom problem was solved, thanks a lot!&nbsp; <o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Yes, I suggested UNITS DD because your
output and input image units are decimal degrees.</span></font><br>
&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</blockquote>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>You should have EXTENT and UNITS
statements at the top level in your map file,</span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>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;</span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
I did not had a PROJECTION element other than the one in my LAYER element. Now
based on the lines bellow outputted by </span></font><font face="Courier New"><span
style='font-family:"Courier New"'>gdalinfo</span></font>:<o:p></o:p></p>

<div style='margin-left:30.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 face="Courier New"><span
style='font-size:12.0pt;font-family:"Courier New"'>GEOGCS[&quot;WGS 84&quot;,<br>
&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I've created the following PROJECTION element:<br>
</span></font><font face="Courier New"><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;proj=latlong&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ellps=WGS84&quot;</span></font>
<font face="Courier New"><span style='font-family:"Courier New"'><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;datum=WGS84&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
</span></font>But I'm not sure if that's correct.<br>
<br>
Here goes my hole mapfile (<i><span style='font-style:italic'>based on the
mapserver demo <st1:place w:st="on">Itasca</st1:place> mapfile</span></i>): <o:p></o:p></p>

<div style='margin-left:30.0pt'>

<p class=MsoNormal><font size=2 face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New"'>MAP<br>
&nbsp;&nbsp;&nbsp; NAME <st1:place w:st="on">ITASCA</st1:place> <br>
&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp; SIZE 600
600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; UNITS DD<br>
&nbsp;&nbsp;&nbsp; SHAPEPATH &quot;data&quot;<br>
&nbsp;&nbsp;&nbsp; IMAGECOLOR 255 255 255<br>
&nbsp;&nbsp;&nbsp; TEMPLATEPATTERN &quot;itasca&quot;</span></font><font
size=2><span style='font-size:10.0pt'> </span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<br>
&nbsp;&nbsp;&nbsp; IMAGETYPE PNG<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;proj=latlong&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;ellps=WGS84&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;datum=WGS84&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp;&nbsp;
#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp; # Start of web interface definition (including WMS enabling
metadata)<br>
&nbsp;&nbsp;&nbsp; #<br>
&nbsp;&nbsp;&nbsp; WEB<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HEADER templates/header.html<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE &quot;set in
index.html&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FOOTER templates/footer.html&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINSCALE 1000<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXSCALE 1550000<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH &quot;set in
index.html&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL &quot;set in
index.html&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA</span></font><font size=2><span
style='font-size:10.0pt'> </span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE
&quot;UMN MapServer Itasca Demo&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_ABSTRACT
&quot;This is a UMN MapServer application for <st1:PlaceName w:st="on">Itasca</st1:PlaceName>
<st1:PlaceType w:st="on">County</st1:PlaceType> located in north central <st1:State
w:st="on"><st1:place w:st="on">Minnesota</st1:place></st1:State>.&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
WMS_ACCESSCONSTRAINTS &quot;none&quot;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # change
this value to match your setup <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
WMS_ONLINERESOURCE &quot;<a href="http://10.10.5.171/cgi-bin/mapserv.exe">http://10.10.5.171/cgi-bin/mapserv.exe
</a>&quot;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_SRS
&quot;EPSG:26915&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp;&nbsp; #<br>
&nbsp;&nbsp;&nbsp; # Start of reference map <br>
&nbsp;&nbsp;&nbsp; #<br>
&nbsp;&nbsp;&nbsp; REFERENCE <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGE graphics/reference.png<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTENT 324152.222 7384541.141
336175.222 7392179.141<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SIZE 120 120<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS ON<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MINBOXSIZE 5<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MAXBOXSIZE 100<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 255 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MARKERSIZE 8<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MARKER 'star'<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
&nbsp;&nbsp;&nbsp; OUTPUTFORMAT<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME GEOTIFFINT16<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DRIVER &quot;GDAL/GTiff&quot;</span></font><font
size=2><span style='font-size:10.0pt'> </span></font><font size=2
face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIMETYPE &quot;image/tiff&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEMODE &quot;INT16&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXTENSION &quot;tif&quot;<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; LAYER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;MyLayer&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS OFF<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DUMP TRUE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA &quot;SG-23-V-A.tif&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;init=epsg:4326&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
END </span></font><o:p></o:p></p>

</div>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Are there other LAYER statements in the
file?</span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
No, I'm just trying with one at the moment for the sake of simplicity.<br>
<br>
In fact I want to display a DEM (Digital Elevation Model) image through WCS
(Web Coverage Service) in order to open it in the OpenJUMP application ( <i><span
style='font-style:italic'>The use of OpenJUMP is a mandatory requirement</span></i>).
For that I want first to test the availability of WCS of this DEM in the
MapServer Demo application.<br>
<br>
<font color=navy><span style='color:navy'><o:p></o:p></span></font></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>&lt;<st1:place
w:st="on"><st1:City w:st="on">Norman</st1:City></st1:place>&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>To display
a DEM through the MapServer WCS there are instructions here that have been
gathered by lots of us doing this work;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><a
href="http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo">http://mapserver.gis.umn.edu/docs/howto/WCSServerFormatHowTo</a><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>if you
have any problems please post back to the list.&nbsp; The excellent ICEDS service
(Jeremy Morley &#8211; UCL) serves DEM using MapServer.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>&lt;/<st1:place
w:st="on"><st1:City w:st="on">Norman</st1:City></st1:place><o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=navy
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
That's my current strategy to achieve this objective, any suggestions would be
most appreciated :) ( <i><span style='font-style:italic'>but I know, this can
be a subject for a hole new post to this list</span></i>).<br>
<br>
<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>&nbsp;&nbsp;&nbsp;&nbsp; - Ed</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Ed
McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
<st1:Street w:st="on"><st1:address w:st="on">73 Princeton Street, Suite 305</st1:address></st1:Street><br>
<st1:place w:st="on"><st1:City w:st="on">North Chelmsford</st1:City>, <st1:State
 w:st="on">MA</st1:State>&nbsp; <st1:PostalCode w:st="on">01863</st1:PostalCode></st1:place><br>
Phone: +1 (978) 251-4242<br>
Fax: +1 (978) 251-1396<br>
<a href="mailto:ed@topozone.com" target="_blank">ed@topozone.com</a></span></font>
<o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Bruno
Patini Furtado [mailto:<a href="mailto:bpfurtado@gmail.com" target="_blank">bpfurtado@gmail.com</a>]
<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, August 09, 2006
1:47 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Ed McNierney<br>
<b><span style='font-weight:bold'>Cc:</span></b> <a
href="mailto:MAPSERVER-USERS@lists.umn.edu" target="_blank">MAPSERVER-USERS@lists.umn.edu</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [UMN_MAPSERVER-USERS]
Image location inside its corner coordinates</span></font><o:p></o:p></p>

</div>

<div><span id="q_10cf4802619d2aa9_3">

<p class=MsoNormal style='margin-bottom:12.0pt'><span class=e><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi Ed, <o:p></o:p></span></font></span></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 8/9/06, <b><span style='font-weight:bold'>Ed
McNierney</span></b> &lt;<a href="mailto:ed@topozone.com" target="_blank">ed@topozone.com</a>&gt;
wrote: </span></font></span><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>Bruno -</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>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:</span></font><o:p></o:p></p>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>EXTENT -48.0004159 -25.0004164 -46.5004159
-24.0004163</span></font><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>My extent is indeed like
you said it should be:<br>
</span></font><font face="Courier New"><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
EXTENT -48.0004159 -25.0004164 -46.5004159 -24.0004163</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>It was because of the line
below that you state that the units should be Decimal Degrees?<br>
</span></font><font face="Courier New"><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
UNIT[&quot;degree&quot;,0.0174532925199433],</span></font><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>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.</span></font><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
Your example shows the right proportion as </span></font><font
face="Courier New"><span style='font-family:"Courier New"'>gdalinfo </span></font>tells
the image is [1800, 1200] but I would like to set the layer metadata <b><font
face="Courier New"><span style='font-family:"Courier New";font-weight:bold'>ows_extent</span></font></b>
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>
<font face="Courier New"><span style='font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
LAYER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME &quot;my DEM Image&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STATUS OFF<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DUMP TRUE<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DATA &quot;SG-23-V-A.tif&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PROJECTION<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&quot;init=epsg:4326&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; METADATA<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_label
&quot;Some label&quot;<br>
<b><span style='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></b><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wcs_resolution &quot;0.00083 -0.00083&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ows_srs
&quot;EPSG:4326&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wcs_formats
&quot;GEOTIFFINT16&quot; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
wcs_nativeformat &quot;geotiff&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp;&nbsp;&nbsp; END<br>
<br>
</span></font><o:p></o:p></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>&nbsp;&nbsp;&nbsp; - Ed</span></font><o:p></o:p></p>

<p><font size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:blue'>Ed McNierney<br>
President and Chief Mapmaker<br>
TopoZone.com / Maps a la carte, Inc.<br>
<st1:Street w:st="on"><st1:address w:st="on">73 Princeton Street, Suite 305</st1:address></st1:Street><br>
<st1:place w:st="on"><st1:City w:st="on">North Chelmsford</st1:City>, <st1:State
 w:st="on">MA</st1:State>&nbsp; <st1:PostalCode w:st="on">01863</st1:PostalCode></st1:place><br>
Phone: +1 (978) 251-4242<br>
Fax: +1 (978) 251-1396<br>
<a href="mailto:ed@topozone.com" target="_blank">ed@topozone.com</a> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> UMN
MapServer Users List [mailto:<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU"
target="_blank">MAPSERVER-USERS@LISTS.UMN.EDU </a>] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Bruno Patini Furtado<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, August 09, 2006
10:59 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <a
href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank">MAPSERVER-USERS@LISTS.UMN.EDU</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> [UMN_MAPSERVER-USERS]
Image location inside its corner coordinates</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I have a DEM image of
which below I've copied the </span></font><font face="Courier New"><span
style='font-family:"Courier New"'>gdalinfo </span></font>output. <o:p></o:p></p>

<div style='margin-left:30.0pt'>

<p class=MsoNormal><font size=3 face="Courier New"><span style='font-size:12.0pt;
font-family:"Courier New"'>Driver: GTiff/GeoTIFF<br>
Size is 1800, 1200 <br>
Coordinate System is:<br>
GEOGCS[&quot;WGS 84&quot;,<br>
&nbsp;&nbsp;&nbsp; DATUM[&quot;WGS_1984&quot;,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SPHEROID[&quot;WGS
84&quot;,6378137,298.2572235630016,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], <br>
&nbsp;&nbsp;&nbsp; PRIMEM[&quot;<st1:City w:st="on"><st1:place w:st="on">Greenwich</st1:place></st1:City>&quot;,0],<br>
&nbsp;&nbsp;&nbsp; UNIT[&quot;degree&quot;,0.0174532925199433],<br>
&nbsp;&nbsp;&nbsp; AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>
Origin = (-48.000416,-24.000416)<br>
Pixel Size = (0.00083333,-0.00083333 )<br>
Metadata:<br>
&nbsp; AREA_OR_POINT=Area <br>
&nbsp; TIFFTAG_SOFTWARE=IMAGINE TIFF Support<br>
Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved<br>
@(#)$RCSfile: etif.c $ $Revision: <a href="http://1.10.1.9" target="_blank">1.10.1.9</a>
$ $Date: 2003/11/13 19:25:49EST $<br>
&nbsp; TIFFTAG_XRESOLUTION=1<br>
&nbsp; TIFFTAG_YRESOLUTION=1<br>
&nbsp; TIFFTAG_RESOLUTIONUNIT=1 (unitless)</span></font> <font
face="Courier New"><span style='font-family:"Courier New"'><br>
Corner Coordinates:<br>
Upper Left&nbsp; ( -48.0004159, -24.0004163) ( 48d 0'1.50&quot;W, 24d
0'1.50&quot;S)<br>
Lower Left&nbsp; ( -48.0004159, -25.0004164 ) ( 48d 0'1.50&quot;W, 25d
0'1.50&quot;S)<br>
Upper Right ( -46.5004159, -24.0004163) ( 46d30'1.50&quot;W, 24d 0'1.50&quot;S)
<br>
Lower Right ( -46.5004159, -25.0004164) ( 46d30'1.50&quot;W, 25d 0'1.50&quot;S)<br>
Center&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ( -47.2504159, -24.5004163) (
47d15'1.50&quot;W, 24d30'1.50&quot;S)<br>
Band 1 Block=1800x2 Type=UInt16, ColorInterp=Gray<br>
&nbsp; Overviews: 450x300, 225x150, 113x75, 57x38</span></font><br clear=all>
<o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
I could take from it the EXTENT to use in my Mapfile using the <i><span
style='font-style:italic'>Lower Left </span></i>and <i><span style='font-style:
italic'>Upper Right </span></i>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">http://bpfurtado.net</a><br>
software development blog: <a href="http://bpfurtado.livejournal.com"
target="_blank">http://bpfurtado.livejournal.com</a> <o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
<span class=e>-- </span><br>
<span class=e>&quot;Minds are like parachutes, they work best when open.&quot;</span><br>
<br>
<span class=e>Bruno Patini Furtado</span><br>
<span class=e>Software Developer</span><br>
<span class=e>webpage: <a href="http://bpfurtado.net" target="_blank">http://bpfurtado.net
</a></span><br>
<span class=e>software development blog: <a
href="http://bpfurtado.livejournal.com" target="_blank">http://bpfurtado.livejournal.com</a>
</span></span><o:p></o:p></span></font></p>

</div>

</div>

</blockquote>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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>
<o:p></o:p></span></font></p>

</div>

</body>

</html>