<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>WMS Consumption and Coordinate Transformation</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I am trying to straighten this out since I am fairly confused about MapGuide and WMS coordinate transformations. There have been many discussions in the past about this, some of which I've been part of, but most pertain to the SERVING of WMS layers rather than consuming them.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">In this case, I need to consume a WMS layer published in EPSG:4326 and have it displayed in a MGOS or MGE map using EPSG 2914. In Studio, the datasource works fine, and the layer displays fine using 4326. In turn, a 4326 map displays the layer fine, but a map in any other coordinate system will not display the WMS layer data.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Exactly how does how this happen on the back-end of MGOS since one cannot specify a coordinate system for a WMS datasource? Is it supposed to look up the EPSG code from the maps assigned coordinate system code and then incorporate that (and the bounding box info) into the WMS request? Is there any way to find out what WMS requests are actually being formed for trouble-shooting purposes? </FONT></P>
<P><FONT SIZE=2 FACE="Arial">I know that the EPSG code exists on the server as I am able to use the ConvertEpsgCodetoWkt via the mapagent. The server in question is an ER Mapper server and I saw a reference to MGOS URL encoding the WMS requests and that this is supposed to be fixed in R2. However, I tested with version 2 RC2 and see the same problems.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Issuing the WMS requests within a browser (or via Gaia) works just fine with different EPSG codes.</FONT>
</P>
<P><A HREF="http://wms.oregonexplorer.info/ImageX/ecw_wms.dll?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=2005ORTHOIMAGERY.ECW&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-124.5666667,40.6839378963289,-116.428612945493,47.5664062144262&WIDTH=875&HEIGHT=740"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Lucida Console">http://wms.oregonexplorer.info/ImageX/ecw_wms.dll?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=2005ORTHOIMAGERY.ECW&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&BBOX=-124.5666667,40.6839378963289,-116.428612945493,47.5664062144262&WIDTH=875&HEIGHT=740</FONT></U></A></P>
<P><A HREF="http://wms.oregonexplorer.info/ImageX/ecw_wms.dll?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=2005ORTHOIMAGERY.ECW&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:2914&BBOX=3814657.887703,-27439.9295170687,6029145.271766,1845383.68671907&WIDTH=875&HEIGHT=740"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">http://wms.oregonexplorer.info/ImageX/ecw_wms.dll?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&LAYERS=2005ORTHOIMAGERY.ECW&STYLES=&FORMAT=image/png&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:2914&BBOX=3814657.887703,-27439.9295170687,6029145.271766,1845383.68671907&WIDTH=875&HEIGHT=740</FONT></U></A></P>
<P><FONT SIZE=2 FACE="Arial">Any help or explainations would be appreciated. Thank you very much.</FONT>
</P>
<P><FONT SIZE=1 FACE="Tahoma">Andy Morsell, P.E.</FONT>
<BR><FONT SIZE=1 FACE="Tahoma">Spatial Integrators, Inc.</FONT>
<BR><A HREF="http://www.SpatialGIS.com"><U><FONT COLOR="#0000FF" SIZE=1 FACE="Tahoma">http://www.SpatialGIS.com</FONT></U></A>
</P>
</BODY>
</HTML>