<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>I feel we are getting closer to common
understandment. First, for my mind you exactly _do_ want to reproject your
data, even if just on-the-fly from epsg:23030 to epsg:4326. I do not know
what projection you need to use with Google Earth bu</SPAN></FONT><FONT
face=Arial color=#0000ff size=2><SPAN class=164011912-18032008>t let's hope that
epsg:4326 is correct.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>Mapserver is doing re-projection for you if you first
tell it in LAYER the original projection of the data, and in the MAP level the
output projection. Now I suppose your LAYER is ok if you have set the
projection to +init=epsg:23030.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>I have never heard about using cs2cs for setting
Mapserver projection but it does not prove that it is not possible. The
methods I have used are using epsg code like
"init=epsg:4230" or proj4-strings. The usage of the projection strings is
explained here:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008><A
href="http://mapserver.gis.umn.edu/docs/reference/mapfile/projection">http://mapserver.gis.umn.edu/docs/reference/mapfile/projection</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>Another document to look through
is:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008><A
href="http://mapserver.gis.umn.edu/docs/howto/wms_server">http://mapserver.gis.umn.edu/docs/howto/wms_server</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>I have to say that it was not very easy to find a
document describing promptly how to use Proj4 strings in mapfile, even that
possibility is often mentioned in discussions.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008>-Jukka-</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008> </DIV>
<DIV dir=ltr align=left><BR></DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=164011912-18032008></SPAN></FONT> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=fi dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Lähettäjä:</B> CARLA FERNANDEZ
[mailto:carla.fernandezb@gmail.com] <BR><B>Lähetetty:</B> 18. maaliskuuta 2008
14:15<BR><B>Vastaanottaja:</B> Rahkonen Jukka<BR><B>Kopio:</B>
mapserver-users@lists.osgeo.org<BR><B>Aihe:</B> Re: [MAPSERVER-USERS] cs2cs
problems<BR></FONT><BR></DIV>
<DIV></DIV>Hi Jukka,<BR><BR>Thanks very much for your interest!! and sorry for
the <FONT style="COLOR: rgb(0,0,0)" face=Arial color=#0000ff
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 face=Arial
color=#0000ff 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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN><SPAN>Hi
Carla,</SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN><SPAN></SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
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 face=Arial color=#0000ff
size=2><SPAN><SPAN></SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
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 face="Times New Roman"
color=#000000 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 face=Arial color=#0000ff
size=2></FONT> </DIV></SPAN>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff
size=2><SPAN>"wms_srs" "EPSG:4230"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>Third,
you should give the default output projection in MAP section
as</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN>PROJECTION<BR>
"init=epsg:4230" <BR>END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
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 face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 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 face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN>-Jukka
Rahkonen-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2><SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(0,0,255) 2px solid; MARGIN-RIGHT: 0px">
<DIV lang=fi dir=ltr align=left>
<HR>
<FONT face=Tahoma size=2><B>Lähettäjä:</B> CARLA FERNANDEZ [mailto:<A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:carla.fernandezb@gmail.com"
target=_blank>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
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:Jukka.Rahkonen@mmmtike.fi"
target=_blank>Jukka.Rahkonen@mmmtike.fi</A>>:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:mapserver-users-bounces@lists.osgeo.org"
target=_blank>mapserver-users-bounces@lists.osgeo.org</A> puolesta:
cfb<BR>Lähetetty: ma 17.3.2008 15:49<BR>Vastaanottaja: <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>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
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.nabble.com/file/p16092875/epsg"
target=_blank>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
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html"
target=_blank>http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html</A><BR>Sent
from the Mapserver - User mailing list archive at <A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://nabble.com/"
target=_blank>Nabble.com</A>.<BR><BR>_______________________________________________<BR>mapserver-users
mailing list<BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="mailto:mapserver-users@lists.osgeo.org"
target=_blank>mapserver-users@lists.osgeo.org</A><BR><A
onclick="return top.js.OpenExtLink(window,event,this)"
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"
target=_blank>http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR></BLOCKQUOTE></DIV><BR></SPAN></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>