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'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'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've tried several combinations, but nothing works...<br><br>PROJECTION<br> #"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"<br>
"cs2cs +from +init=epsg:23030 +to +init=epsg:4326"<br> #"init=epsg:4326" <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 <<a href="mailto:Jukka.Rahkonen@mmmtike.fi">Jukka.Rahkonen@mmmtike.fi</a>>:</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> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span>Please remember to use
"reply to all" in order to send your message for the mailing list as
well. </span></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span> </span></span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span><span> </span>I hope I
unde<span>r</span>stand this <span> correctly</span>. So your 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>"init=epsg:23030"</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> </div>
</span><div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Next, because you are willing to deliver that
layer 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>"wms_srs"
"EPSG:4230"</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </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 compulsory if WMS service will only be used in one output
projection which is the same as the main MAP projection. 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> </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>
"init=epsg:4230" <br>END</span></font></div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>And last calculate the bounding box
containing 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> </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.
If this is the case then insert that value to "wms_srs" and mapfile
projection instead of 4230. Why do you play at all with
epsg:4230 if your data are not using it, and you don't want to any output in
that projection either? 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> </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> </div>
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font> </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'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's mapfile like ETRS89, and I leave the layers' projections
like ED50, it doesn'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 <<a href="mailto:Jukka.Rahkonen@mmmtike.fi" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Jukka.Rahkonen@mmmtike.fi</a>>:</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> "init=epsg:2393"<br>END<br><br>or
proj4 strings:<br><br>PROJECTION<br>"+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"<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'm having
problems with the projection again. I've got a shape in<br>epsg:23030 (ED50
UTM 30N), but I want to set my service in epsg:4230<br>(ETRS89). I've
changed the extent, the "wms_boundingbox" and the<br>"wms_latlonboundingbox"
of my header'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> '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'<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've also tried with
"+proj=longlat" and<br>with "+init=epsg:4258", 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>