<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>

<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>I am 
using&nbsp;&nbsp;<SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff>Mapserver version&nbsp;5.2.0 from MS4W delivery through WMS 
1.1.1.&nbsp;&nbsp;and </FONT></SPAN></FONT></SPAN><SPAN 
class=227152812-03032009><FONT face=Arial color=#0000ff>I was now trying to add 
the missing +towgs84 parameters for the Finnish epsg:2393 projection.&nbsp; I 
located the epsg file from MS4W\proj\nad directory and edited it from 
this:</FONT></SPAN></DIV>
<DIV><SPAN class=227152812-03032009><SPAN class=227152812-03032009><FONT 
face=Arial color=#0000ff># KKJ / Finland Uniform Coordinate 
System<BR>&lt;2393&gt; +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 
+ellps=intl&nbsp;+units=m +no_defs&nbsp; &lt;&gt;</FONT></SPAN></DIV>
<DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>to 
this:</FONT></SPAN></DIV>
<DIV></SPAN><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff># KKJ 
/ Finland Uniform Coordinate System<BR>&lt;2393&gt; +proj=tmerc +lat_0=0 
+lon_0=27 +k=1 +x_0=3500000 +y_0=0 +ellps=intl 
+towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964 +units=m 
+no_defs&nbsp; &lt;&gt;</FONT></SPAN></DIV></DIV>
<DIV><SPAN class=227152812-03032009></SPAN><SPAN class=227152812-03032009><FONT 
face=Arial color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>However, 
adding +towgs84 parameters do not have any effect on the Mapserver output.&nbsp; 
I am sure that this certain epsg file is read, because commenting out the 
&lt;2393&gt; line makes Mapserver to stop working with my mapfile.&nbsp; In 
addition, I can make map to shift by editing +x_0 and +y_0 parameters.&nbsp; I 
had even another try by&nbsp;skipping&nbsp;the whole epsg file by giving the 
projection directly in the layer definitions of my mapfile as 
</FONT></SPAN></DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff>&nbsp;PROJECTION<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"proj=tmerc"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"lat_0=0"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"lon_0=27"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"k=1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"x_0=3500000"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"y_0=0"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"ellps=intl"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"units=m"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "no_defs"<BR>&nbsp;&nbsp;&nbsp; 
END</FONT></SPAN></DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>Here I can 
see exactly the same behaviour.&nbsp; Editing other parameters, like lon_0, x_0 
and y_0 are really changing the output, while editing towgs84 parameters or 
leaving them out totally has no effect.&nbsp; It looks to me that towgs84 
parameters are not read at all, or all the parameters are interpreted as 
zeros.&nbsp; However, I can't believe that this error wouldn't&nbsp;have been 
noticed by others so far.&nbsp; So I am just giving the parameters in a wrong 
way?</FONT></SPAN></DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><SPAN class=227152812-03032009>The 
ESRI projection file at </SPAN><SPAN 
class=227152812-03032009>MS4W\proj\nad\&nbsp;doest have&nbsp;&lt;2393&gt; 
definitions with a bit different towgs84 values.&nbsp; Giving my&nbsp; layer 
definition as "init=esri:2393" does not change anything, Mapserver does not use 
towgs84 parameters.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><SPAN 
class=227152812-03032009></SPAN></FONT></FONT><FONT face=Arial><FONT 
color=#0000ff><SPAN class=227152812-03032009></SPAN></FONT></FONT><SPAN 
class=227152812-03032009></SPAN><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>-Jukka 
Rahkonen-</FONT></SPAN></DIV></BODY></HTML>