<!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> </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. 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. That's fine.
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> </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). And
you need that same PROJECTION block in the raster layer to tell MapServer that
that's the input projection for that layer. 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.
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> </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> "proj=latlong"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006><FONT face=Arial
color=#0000ff size=2> "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> </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> </DIV>
<DIV dir=ltr align=left><SPAN class=373565314-05052006> <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 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> TYPE POINT<BR>
STATUS DEFAULT<BR> FEATURE<BR>
POINTS <BR>
56.5333333 -71.5 # <-------
DD<BR> END<BR>
TEXT "HELLO WORLD"<BR>
END<BR> CLASS<BR> COLOR
255 0 0 <BR> SYMBOL
'cross'<BR> LABEL<BR>
TYPE bitmap<BR>
END<BR> END<BR> 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> "proj=stere"<BR> "ellps=WGS84"<BR> "datum=WGS84"<BR> "lon_0=0"<BR> "lat_0=-90"<BR> "lat_ts=-71"<BR> "units=m"<BR>END<BR><BR>PROJECTION
<BR> "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 <<A
href="mailto:ed@topozone.com">ed@topozone.com</A>>:</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> </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. 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> </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. 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> </DIV>
<DIV dir=ltr align=left><SPAN><FONT face=Arial color=#0000ff size=2>What is it
you're trying to do? Are you trying to display the image in a different
projection than the raster source image is using? 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> </DIV>
<DIV dir=ltr align=left><SPAN> <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 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 -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>