<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [UMN_MAPSERVER-USERS] Problem with WMS Connection</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2>Dennis -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2>By default MapServer presumes that the output map and all 
layers are in the same projection/coordinate system.&nbsp; As a result, for 
simple cases you don't need need to tell MapServer what projection you're 
using.&nbsp; If you ask for a map at coordinate 23456, 2837455 then MapServer 
will look for that coordinate in your data and draw whatever is 
there.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2>If you&nbsp;want to use data sources with different input 
projections, or if you want MapServer to produce an output map in a projection 
different than the input data, then you need to specify PROJECTION blocks.&nbsp; 
The map-level (top-level) PROJECTION block specifies the desired output 
projection, and the EXTENT of your map is in the units of that projection.&nbsp; 
If that's all you do, then all input layers are presumed to be in that 
projection.&nbsp; If your input data is in a different projection, you have to 
tell MapServer by adding a PROJECTION block to each layer with a projection 
different from the output projection.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2>It is often best to use an all-or-nothing approach.&nbsp; 
If your top-level output map has a PROJECTION block, then put PROJECTION blocks 
in all your layer definitions.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006>&nbsp;&nbsp;&nbsp; <FONT 
face=Arial color=#0000ff size=2>- Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006>
<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><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dennis Megarry [mailto:dennis@megarry.com] 
<BR><B>Sent:</B> Friday, February 24, 2006 12:54 PM<BR><B>To:</B> Ed McNierney; 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> RE: [UMN_MAPSERVER-USERS] 
Problem with WMS Connection<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText52727 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Ahh.. yup.. that was 
it!&nbsp; Stupid me.. I fought with this for 5 days now..&nbsp; lol&nbsp; 
Thanks!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>So..&nbsp; I take it if you have data with 
different projections you need to set this at the layer level?&nbsp; I had setup 
the main projection which all my data is in and thought by setting the layer 
projection for the WMS server is would work, but it certainly did not...&nbsp; I 
removed the Projection all together and things started to display.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>Dennis</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List on behalf of Ed 
McNierney<BR><B>Sent:</B> Fri 2/24/2006 11:37 AM<BR><B>To:</B> 
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] 
Problem with WMS Connection<BR></FONT><BR></DIV>
<DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2>Dennis -</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2>Thanks - the server seems fine.&nbsp; But you're not 
defining a PROJECTION block for the WMS layer - you need to tell MapServer that 
the input image is in EPSG:4269 projection rather than in the default LCC 
projection of your output image.&nbsp; Without that, MapServer will treat it as 
LCC input coordinates, and the resulting image will be way off-screen 
somewhere.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2>I might be wrong on that - I got in the habit of specifying 
PROJECTION blocks for WMS layers a long time ago, when they were required.&nbsp; 
That might have changed, but it's worth a try.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006>&nbsp;&nbsp;&nbsp; <FONT 
face=Arial color=#0000ff size=2>- Ed</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial 
color=#0000ff size=2>P.S.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006>
<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><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dennis Megarry [mailto:dennis@megarry.com] 
<BR><B>Sent:</B> Friday, February 24, 2006 11:01 AM<BR><B>To:</B> Ed 
McNierney<BR><B>Subject:</B> RE: [UMN_MAPSERVER-USERS] Problem with WMS 
Connection<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText79036 dir=ltr>
<DIV dir=ltr><FONT face=Arial><FONT size=2>I do get a response from it...&nbsp; 
The actual MAP file is below (since this is sent off-list).&nbsp; I tried your 
suggestion and put "&amp;" on the end (see below) and still nothing..&nbsp; 
ARGH!<SPAN class=093373416-24022006><FONT 
color=#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Arial><FONT size=2><SPAN 
class=093373416-24022006></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV dir=ltr><SPAN class=093373416-24022006><FONT size=2>&nbsp;[MAP file 
contents removed by Ed before replying 
on-list]</FONT></SPAN></DIV></DIV></DIV></BODY></HTML>