<!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.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>Dan -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>If you are going to mix different projections in a mapfile, 
you need to tell MapServer what's going on.&nbsp; It looks like you have a good 
PROJECTION description for your input raster layer, and you seem to want the 
same output projection used in the map image itself.&nbsp; That's fine.&nbsp; 
But you are now creating a point layer with a DIFFERENT projection, but you're 
not doing anything that would let MapServer know that.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>You need three PROJECTION blocks - one at the top level 
(just below the EXTENT and UNITS is fine) to tell MapServer what output 
projection you're using (the stereographic one you've defined below).&nbsp; And 
you need that same PROJECTION block in the raster layer to tell MapServer that 
that's the input projection for that layer.&nbsp; And you then need a third one 
in the point layer to tell MapServer that the coordinates you're using for that 
layer are NOT in the stereographic projection but are in lat/lon degrees.&nbsp; 
That is, a block like:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>PROJECTION</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp; "proj=latlong"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>&nbsp;&nbsp; "datum=WGS84'</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>END</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2>Then MapServer will know that it needs to reproject that 
input projection to the same output projection used in the output 
image.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006>&nbsp;&nbsp;&nbsp; <FONT 
face=Arial color=#0000ff size=2>- Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006>
<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>ed@topozone.com<BR>(978) 251-4242 </FONT></P></SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List 
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>d c<BR><B>Sent:</B> 
Friday, May 05, 2006 10:44 AM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] 
Raster image doesn't show<BR></FONT><BR></DIV>
<DIV></DIV>Ed,<BR><BR>This is the extent of my map: <BR><BR>EXTENT -3174450 
-2816050 2867175 2406325<BR>UNITS METERS<BR><BR>I'm trying to display a point 
element on a geotiff raster file, as follows (Note the decimal degree 
format):<BR><BR>LAYER <BR>&nbsp;&nbsp;&nbsp; TYPE POINT<BR>&nbsp;&nbsp;&nbsp; 
STATUS DEFAULT<BR>&nbsp;&nbsp;&nbsp; &nbsp; FEATURE<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; POINTS <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; 56.5333333 -71.5&nbsp; #&nbsp; &lt;------- 
DD<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; TEXT "HELLO WORLD"<BR>&nbsp;&nbsp;&nbsp; 
END<BR>&nbsp;&nbsp;&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 
255 0 0 <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SYMBOL 
'cross'<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; LABEL<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE bitmap<BR>&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp;&nbsp;&nbsp; TOLERANCE 
5<BR>END<BR><BR>The label, according to the coordinates given, sometimes 
appears, sometimes does not and most often <BR>on the same (erroneous) spot. 
<BR><BR>I tried to change the EXTENT (and UNITS) to decimal degrees according to 
the output of gdalinfo which outputs corner coordinates both in meters and 
decimal degrees. I thought I could this way make Mapserver understand I was 
specifying the input in decimal degrees so it should output correctly the point 
I want to draw. The scalebar also revealed seriously confused. <BR><BR>I did not 
mention that the map is of Antarctica. This apparently complicates the matter 
since the EXTENT values are different than on most maps. <BR><BR>I'm new to this 
so I haven't got much knowledge about projections. The following two I have used 
successfully in displaying the map (but not the point): 
<BR><BR>PROJECTION<BR>&nbsp;"proj=stere"<BR>&nbsp;"ellps=WGS84"<BR>&nbsp;"datum=WGS84"<BR>&nbsp;"lon_0=0"<BR>&nbsp;"lat_0=-90"<BR>&nbsp;"lat_ts=-71"<BR>&nbsp;"units=m"<BR>END<BR><BR>PROJECTION 
<BR>&nbsp; "init=esri:102021"<BR>END<BR><BR>Thanks for your 
help,<BR><BR>Dan<BR><BR><BR>
<DIV><SPAN class=gmail_quote>2006/5/5, Ed McNierney &lt;<A 
href="mailto:ed@topozone.com">ed@topozone.com</A>&gt;:</SPAN>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV style="DIRECTION: ltr">
  <DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>D C 
  -</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>The UNITS 
  and EXTENT in your mapfile need to correspond to the units used in the 
  projection of your data.&nbsp; If they don't, then you're looking to reproject 
  the data and there's some extra work you need to do.</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>gdalinfo 
  will tell you the units and extent in the data source's native 
  projection.&nbsp; Changing those values in the mapfile won't change the input 
  data, and you're simply requesting an output image that doesn't correspond to 
  any part of your input data, so you (correctly) get nothing 
  displayed.</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>What is it 
  you're trying to do?&nbsp; Are you trying to display the image in a different 
  projection than the raster source image is using?&nbsp; If so, what projection 
  does the raster use and what output projection do you 
want?</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>&nbsp;&nbsp;&nbsp; <FONT face=Arial 
  color=#0000ff size=2>- Ed</FONT></SPAN></DIV>
  <DIV dir=ltr align=left><SPAN>
  <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><A onclick="return top.js.OpenExtLink(window,event,this)" 
  href="mailto:ed@topozone.com" target=_blank>ed@topozone.com</A><BR>(978) 
  251-4242 </FONT></P></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>d 
  c<BR><B>Sent:</B> Friday, May 05, 2006 5:54 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] Raster image doesn't show<BR></FONT><BR></DIV></DIV>
  <DIV style="DIRECTION: ltr"><SPAN class=q id=q_10b04e51c4c45d49_1>
  <DIV></DIV>Hello,<BR><BR>I just changed the EXTENT of my mapfile which was in 
  METERS to DD.<BR>I just wrote down the corresponding decimals which were given 
  by gdalinfo.<BR><BR>BEFORE<BR>--------------<BR>UNITS METERS<BR>EXTENT 
  -3174450 -3225675 2867175 2815950 
  <BR><BR><BR>AFTER<BR>-----------<BR><BR>UNITS DD<BR>EXTENT&nbsp; -131.5 -56.5 
  134 -52.3<BR><BR>nb: the map is a raster im. of antarctica<BR><BR>The PROBLEM 
  now is that THE MAP DOESN'T SHOW.<BR>I don't get an error or anything, the map 
  just doesn't show. <BR><BR>Any suggestions? <BR><BR>Thanks in advance. 
  <BR></SPAN></DIV></BLOCKQUOTE></DIV><BR></BODY></HTML>