<!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> </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. As a result, for
simple cases you don't need need to tell MapServer what projection you're
using. 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> </DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006><FONT face=Arial
color=#0000ff size=2>If you 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.
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.
If that's all you do, then all input layers are presumed to be in that
projection. 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> </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.
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> </DIV>
<DIV dir=ltr align=left><SPAN class=474100818-24022006> <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 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! Stupid me.. I fought with this for 5 days now.. lol
Thanks!</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>So.. I take it if you have data with
different projections you need to set this at the layer level? 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... I
removed the Projection all together and things started to display.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006><FONT face=Arial
color=#0000ff size=2>Thanks - the server seems fine. 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. 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> </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.
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> </DIV>
<DIV dir=ltr align=left><SPAN class=093373416-24022006> <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> </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 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...
The actual MAP file is below (since this is sent off-list). I tried your
suggestion and put "&" on the end (see below) and still nothing..
ARGH!<SPAN class=093373416-24022006><FONT
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Arial><FONT size=2><SPAN
class=093373416-24022006></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr><SPAN class=093373416-24022006><FONT size=2> [MAP file
contents removed by Ed before replying
on-list]</FONT></SPAN></DIV></DIV></DIV></BODY></HTML>