<!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> </DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>I am 
using  <SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff>Mapserver version 5.2.0 from MS4W delivery through WMS 
1.1.1.  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.  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><2393> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=3500000 +y_0=0 
+ellps=intl +units=m +no_defs  <></FONT></SPAN></DIV>
<DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN> </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><2393> +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  <></FONT></SPAN></DIV></DIV>
<DIV><SPAN class=227152812-03032009></SPAN><SPAN class=227152812-03032009><FONT 
face=Arial color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>However, 
adding +towgs84 parameters do not have any effect on the Mapserver output.  
I am sure that this certain epsg file is read, because commenting out the 
<2393> line makes Mapserver to stop working with my mapfile.  In 
addition, I can make map to shift by editing +x_0 and +y_0 parameters.  I 
had even another try by skipping 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> PROJECTION<BR>      
"proj=tmerc"<BR>      
"lat_0=0"<BR>      
"lon_0=27"<BR>      
"k=1"<BR>      
"x_0=3500000"<BR>      
"y_0=0"<BR>      
"ellps=intl"<BR>      
"towgs84=-96.0617,-82.4278,-121.743,4.80107,0.34543,-1.37646,1.4964"<BR>      
"units=m"<BR>      "no_defs"<BR>    
END</FONT></SPAN></DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial 
color=#0000ff></FONT></SPAN> </DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>Here I can 
see exactly the same behaviour.  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.  It looks to me that towgs84 
parameters are not read at all, or all the parameters are interpreted as 
zeros.  However, I can't believe that this error wouldn't have been 
noticed by others so far.  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> </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\ doest have <2393> 
definitions with a bit different towgs84 values.  Giving my  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> </DIV>
<DIV><SPAN class=227152812-03032009><FONT face=Arial color=#0000ff>-Jukka 
Rahkonen-</FONT></SPAN></DIV></BODY></HTML>