<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>WMS Consumption and Coordinate Transformation</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=116533117-15022008><FONT face=Arial
color=#0000ff size=2>For those researching the same issue, I have created a Wiki
page that should help you with this. Jason suggested the potential of
using a resource config document and Autodesk supplied an internal document that
describes this process. I essentially copied this document to the Wiki
page, so it is now available to everyone to use. The process is a little
arduous and prone to mistake in the case of typos or syntax errors, but I can
attest that it works at least in the case of using a different EPSG coordinate
system for your WMS requests. Further, I understand that the MGOS
development team would like to implement an easier method for applying these
config documents and possibly expose some of the override options directly in
MapGuide Studio when configuring a pertinent resource.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116533117-15022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=116533117-15022008><FONT face=Arial
color=#0000ff size=2>The page can be found here:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=116533117-15022008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=116533117-15022008><FONT face=Arial
color=#0000ff size=2><A
href="https://trac.osgeo.org/fdo/wiki/FdoWmsNotes">https://trac.osgeo.org/fdo/wiki/FdoWmsNotes</A></FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy Morsell, P.E.</FONT></SPAN>
<BR><SPAN lang=en-us><FONT face=Tahoma size=1>Spatial Integrators,
Inc.</FONT></SPAN> <BR><SPAN lang=en-us><FONT face=Tahoma size=1><A
href="http://www.SpatialGIS.com">http://www.SpatialGIS.com</A></FONT></SPAN>
</P>
<DIV>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Andy
Morsell<BR><B>Sent:</B> Tuesday, February 12, 2008 11:52 AM<BR><B>To:</B>
'MapGuide Users Mail List'<BR><B>Subject:</B> [mapguide-users] WMS Consumption
and Coordinate Transformation<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>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 face=Arial size=2>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 face=Arial size=2>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 face=Arial size=2>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 face=Arial size=2>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
face="Lucida Console" color=#0000ff
size=2>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
face=Arial color=#0000ff
size=2>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 face=Arial size=2>Any help or explainations would be appreciated.
Thank you very much.</FONT> </P>
<P><FONT face=Tahoma size=1>Andy Morsell, P.E.</FONT> <BR><FONT face=Tahoma
size=1>Spatial Integrators, Inc.</FONT> <BR><A
href="http://www.SpatialGIS.com"><U><FONT face=Tahoma color=#0000ff
size=1>http://www.SpatialGIS.com</FONT></U></A> </P></BODY></HTML>