<!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=526580410-18032008><SPAN class=555373510-18032008>Hi
Carla,</SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008><SPAN
class=555373510-18032008></SPAN></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008><SPAN class=555373510-18032008>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
class=526580410-18032008><SPAN
class=555373510-18032008> </SPAN></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008><SPAN class=555373510-18032008> </SPAN>I hope I
unde<SPAN class=555373510-18032008>r</SPAN>stand this <SPAN
class=555373510-18032008> 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>
<DIV dir=ltr align=left><FONT size=+0><SPAN
class=526580410-18032008>PROJECTION</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=+0><SPAN
class=526580410-18032008>"init=epsg:23030"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT size=+0><SPAN
class=526580410-18032008>END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008>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
class=526580410-18032008>"wms_srs"
"EPSG:4230"</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008>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
class=526580410-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008>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
class=526580410-18032008>PROJECTION<BR>
"init=epsg:4230" <BR>END</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008>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
class=526580410-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008>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
class=526580410-18032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008>-Jukka Rahkonen-</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=526580410-18032008></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: #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
11:50<BR><B>Vastaanottaja:</B> Rahkonen Jukka<BR><B>Aihe:</B> Re:
[MAPSERVER-USERS] cs2cs problems<BR></FONT><BR></DIV>
<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">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
href="mailto:mapserver-users-bounces@lists.osgeo.org">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">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">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">http://www.nabble.com/cs2cs-problems-tp16092875p16092875.html</A><BR>Sent
from the Mapserver - User mailing list archive at <A
href="http://nabble.com/">Nabble.com</A>.<BR><BR>_______________________________________________<BR>mapserver-users
mailing list<BR><A
href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</A><BR><A
href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>