Hi Jukka,<br><br>Thanks very much for your interest!! and sorry for the <font style="color: rgb(0, 0, 0);" color="#0000ff" face="Arial" size="2"><span>conflicting information...</span></font><br><br>I explain you, I have all my layers in epsg:23030, and I don&#39;t want to reproject them. However, I want to set my WMS in WGS84-epsg:4326 (not ETRS89-epsg:4230, sorry), so that I can load my WMS in Google-Earth without the difference that it has (almost 130 meters) because of the differents reference systems...It seems like MapServer ignores the projection settings in the map section!! (because I set WGS84, like GoogleEarth)<br>
<br>And googleing I&#39;ve read that I can use the cs2cs in the projection object (map section), but I get this error:<br><span style="font-style: italic;">msProcessProjection(): Projection library error. projection not named</span><br>
<br>I&#39;ve tried several combinations, but nothing works...<br><br>PROJECTION<br>&nbsp;#&quot;cs2cs +from +proj=utm +zone=30 +ellps=intl +units=m +no_defs no_defs +to +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs no_defs&quot;<br>
&nbsp;&quot;cs2cs +from +init=epsg:23030 +to +init=epsg:4326&quot;<br>&nbsp;#&quot;init=epsg:4326&quot;&nbsp;&nbsp; <br><font color="#0000ff" face="Arial" size="2"><span></span></font>END <br><br><br><br>Thanks!!<br><br><div><span class="gmail_quote">2008/3/18, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span>Hi 
Carla,</span></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span></span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span>Please remember to use 
&quot;reply to all&quot; in order to&nbsp;send your message for the mailing list as 
well.&nbsp; </span></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span>&nbsp;</span></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span>&nbsp;</span>I hope I 
unde<span>r</span>stand&nbsp;this&nbsp;<span>&nbsp;correctly</span>. So your&nbsp;original data (the 
shapefile) is in <font color="#000000" face="Times New Roman" size="3">epsg:23030? 
Then you should have in mapfile, in corresponding LAYER 
section</font></span></font></div><span class="q">
<div dir="ltr" align="left"><font size="-0"><span>PROJECTION</span></font></div>
<div dir="ltr" align="left"><font size="-0"><span>&quot;init=epsg:23030&quot;</span></font></div>
<div dir="ltr" align="left"><font size="-0"><span>END</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div>
</span><div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Next, because you are willing to deliver that 
layer&nbsp;through WMS in epsg:4230, it is good to add this to layer METADATA as 
</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>&quot;wms_srs&quot;&nbsp;&nbsp;&nbsp; 
&quot;EPSG:4230&quot;</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>By looking at my old mapfiles wms_srs metadata seems 
not to be&nbsp;compulsory if WMS service will only be used in one output 
projection which is the same as the main MAP projection.&nbsp; Anyway I believe 
it would be good habbit to have it.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Third, you should give the default output projection in 
MAP section as</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>PROJECTION<br>&nbsp;&nbsp;&nbsp; 
&quot;init=epsg:4230&quot;&nbsp;<br>END</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>And&nbsp;last calculate the bounding box 
containing&nbsp;your data in the mapfile projection (epsg:4230) and feel in the 
values as EXTENT of the map object.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>I try to read your messages once again faithfully and I 
feel you are giving a bit conflicting information. In one place you say you are 
willing to publish your data in ETRS89, wich I believe to mean epsg:4258.&nbsp; 
If this is the case then insert that value to &quot;wms_srs&quot;&nbsp;and mapfile 
projection instead of 4230.&nbsp;&nbsp;Why do you&nbsp;play&nbsp;at all with 
epsg:4230 if your data are not using it, and you don&#39;t want to any output in 
that projection either?&nbsp; Perhaps I have just not understood what you are 
aiming at, but I hope you will have luck with it.</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>-Jukka Rahkonen-</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font>&nbsp;</div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="fi">
  <hr>
  <font face="Tahoma" size="2"><b>Lähettäjä:</b> CARLA FERNANDEZ 
  [mailto:<a href="mailto:carla.fernandezb@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">carla.fernandezb@gmail.com</a>] <br><b>Lähetetty:</b> 18. maaliskuuta 2008 
  11:50<br><b>Vastaanottaja:</b> Rahkonen Jukka<br><b>Aihe:</b> Re: 
  [MAPSERVER-USERS] cs2cs problems<br></font><br></div><div><span class="e" id="q_118c17ec3ce13364_3">
  <div></div>Thanks four your answer,<br><br>I&#39;ve defined projections in my WMS 
  before without problems. In this case I want to change the projection of my 
  WMS (to ETRS89) with the layers in ED50, but if I just set the projection of 
  the header&#39;s mapfile like ETRS89, and I leave the&nbsp; layers&#39; projections 
  like ED50, it doesn&#39;t work :( <br><br><br>Do you have any idea of how can I 
  use the cs2cs??<br><br>Thanks!!<br><br><br><br><br><br>
  <div><span class="gmail_quote">2008/3/17, Rahkonen Jukka &lt;<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Jukka.Rahkonen@mmmtike.fi</a>&gt;:</span> 

  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I 
    you want to define projections in mapfile then there are two 
    alternatives:<br>either give the espg 
    code:<br><br>PROJECTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;init=epsg:2393&quot;<br>END<br><br>or 
    proj4 strings:<br><br>PROJECTION<br>&quot;+proj=tmerc +lat_0=0 +lon_0=27 
    +k=1.000000 +x_0=3500000<br>+y_0=0 +ellps=intl 
    +towgs84=-90.7,-106.1,-119.2,4.09,0.218,-1.05,1.37<br>+units=m 
    +no_defs&quot;<br>END<br><br>But perhaps you are aiming at something else by 
    using cs2cs?<br><br>-Jukka Rahkonen-<br><br>-----Alkuperäinen 
    viesti-----<br>Lähettäjä: <a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapserver-users-bounces@lists.osgeo.org</a> 
    puolesta: cfb<br>Lähetetty: ma 17.3.2008 15:49<br>Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapserver-users@lists.osgeo.org</a><br>
Aihe: 
    [MAPSERVER-USERS] cs2cs problems<br><br><br><br>Hi,<br><br>I&#39;m having 
    problems with the projection again. I&#39;ve got a shape in<br>epsg:23030 (ED50 
    UTM 30N), but I want to set my service in epsg:4230<br>(ETRS89). I&#39;ve 
    changed the extent, the &quot;wms_boundingbox&quot; and the<br>&quot;wms_latlonboundingbox&quot; 
    of my header&#39;s mapfile to geographic coordinates<br>(epsg:4230 for ED50), 
    and in the projection object (always in the header, in<br>the layer object I 
    leave epsg:23030) I put:<br><br>PROJECTION<br>&nbsp;&nbsp; &#39;cs2cs +from 
    +init=epsg:4230 +to +proj=4258 +no_defs +no_defs +no_defs<br>+no_defs 
    +ellps=GRS80 +datum=ETRS89 +no_defs +units=m&#39;<br>END <a href="http://www.nabble.com/file/p16092875/epsg" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/file/p16092875/epsg</a> 
    epsg<br><br>For the second reference system, I&#39;ve also tried with 
    &quot;+proj=longlat&quot; and<br>with &quot;+init=epsg:4258&quot;, but I get always the same 
    error:<br><br>msProcessProjection(): Projection library error. projection 
    not named<br><br>The epsg file of my proj4 is attached (ms4w v. 2.2.7, 
    MapServer 5.0.2)<br><br>Thanks in advance!!<br><br><br>--<br>View this 
    message in context: <a href="http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html</a><br>
Sent 
    from the Mapserver - User mailing list archive at <a href="http://nabble.com/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Nabble.com</a>.<br><br>_______________________________________________<br>
mapserver-users 
    mailing list<br><a href="mailto:mapserver-users@lists.osgeo.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br></span></div></blockquote></div>
</blockquote></div><br>