<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt
}
LI.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt
}
DIV.MsoNormal {
MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
P {
FONT-FAMILY: "Times New Roman"; MARGIN-LEFT: 0in; FONT-SIZE: 12pt; MARGIN-RIGHT: 0in; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
FONT-FAMILY: Arial; COLOR: windowtext; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US link=blue vLink=purple>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>Let's hope this is correct information.
</SPAN></FONT><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>MAP-WEB-METADATA-"wms_srs" is listing the projections
which are supported for the whole service. Individual layers may give more
projections if they are given in LAYER-METADATA. </SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>If there is not wms_extent set on LAYER metadata
Mapserver is trying to calculate it for you on-the-fly. At least older
versions did not do that for tileindex layers, and with some database sources
querying the extents may be slow and especially with Oracle very slow, so
giving extents in the metadata may be a good idea.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>BBOX in the WMS GetMap is always in the output
projection so yes, you need to have some conversion in your planned
system.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>Finally, you will need some code of your own ot to use
a ready made client for making WIDTH and HEIGHT proportional to BBOX. WMS
is accepting anything and projects the output to fit the
request.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010>-Jukka Rahkonen-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=786491713-11112010></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=fi class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Lähettäjä:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>Puolesta </B>David
Hildebrand<BR><B>Lähetetty:</B> 9. marraskuuta 2010
20:09<BR><B>Vastaanottaja:</B> mapserver-users@lists.osgeo.org<BR><B>Aihe:</B>
[mapserver-users] MapServer as WMS <BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">I am trying to configure MapServer
as a WMS service and would like some clarity on projection information.
I have several layers in differing projections but would like the final
output to be in Transverse Mercator. For each layer I have defined the
"wms_srs" and "wms_extent" tags. In the top-level map file do I now
define the "wms_srs" tag as a list of projections which are defined in the
layers or is there a wildcard specification I can use? Furthermore, I
want to be able to specify the bounding box in lat/lon rather than Transverse
Mercator coordinates, the desired output projection. I suppose I need to
have a CGI script call a projection utility to return the bounding box
coordinates projected to Transverse Mercator and then pass those to mapserv.
On a related note, how do I set the output WIDTH and HEIGHT to be
proportional to the BBOX?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=2 face=Arial><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt">Thanks.<o:p></o:p></SPAN></FONT></P>
<P><FONT size=2 face="Times New Roman"><SPAN
style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></P>
<P><FONT size=2 face="Times New Roman"><SPAN
style="FONT-SIZE: 10pt">===========================<BR>David V.
Hildebrand<BR>Agriculture Financial Services Corporation<BR>(403)
782-8239 <BR><BR></SPAN></FONT><A href="about:www.afsc.ca"><FONT
size=2><SPAN style="FONT-SIZE: 10pt">www.afsc.ca</SPAN></FONT></A><U><FONT
size=2><SPAN style="FONT-SIZE: 10pt"> <</SPAN></FONT></U><A
href="http://www.afsc.ca/"><FONT size=2><SPAN
style="FONT-SIZE: 10pt">http://www.afsc.ca</SPAN></FONT></A><U><FONT
size=2><SPAN style="FONT-SIZE: 10pt">><BR></SPAN></FONT></U><FONT
size=2><SPAN style="FONT-SIZE: 10pt">This communication is intended for the
use of the recipient to which it is addressed, and may contain confidential,
personal and/or privileged information. Please contact Agriculture Financial
Services Corporation immediately if you are not the intended recipient of this
communication, and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted or
destroyed. Please consider the environment before printing this
email.</SPAN></FONT><FONT size=2><SPAN
style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT size=3 face="Times New Roman"><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>