<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2>Stefan,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2>Your question is not entirely clear. You can not re-project
an individual layer on-the-fly, because php_mapscript does not re-write the
dataset (hence its projection will always be the same); you CAN however change
the projection of the map (using setProjection, as you did), which means all
layers in the map get re-projected (the dataset remains unchanged, though). For
this, it is required that your layer has a projection object with the native
projection of that layer. This will cause the layer to be reprojected along with
the map. Is this what you are trying to do? </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2>You *may* have to save your mapfile, or your session, in
order for it to take effect, depending on your setup.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2>regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=010195305-24082006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> UMN MapServer Users List
[mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Stefan
Schwarzer<BR><B>Sent:</B> 24 August 2006 13:45<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS]
Mapscript Re-Projection on-the-fly<BR></FONT><BR></DIV>
<DIV></DIV>Hey,
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>I can't imagine that such a question stays unanswered in the mapserver
community...</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>I meanwhile added a:</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><SPAN class=Apple-tab-span style="WHITE-SPACE: pre"></SPAN>$map ->
setProjection("init=epsg:26711");</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>to my code, but nothing happens - meaning: no error message but no
reprojection either.</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>Can anyone help me out?</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>Thanks in advance.</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>Stefan</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><BR>
<DIV>
<DIV>On Aug 22, 2006, at 10:47 AM, Stefan Schwarzer wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><FONT class=Apple-style-span face=Arial>Gush,</FONT>
<DIV><FONT class=Apple-style-span face=Arial><BR
class=khtml-block-placeholder></FONT></DIV>
<DIV><FONT class=Apple-style-span face=Arial>I couldn't find any precise
information about how to re-project layers on-the-fly via PHP Mapscript.
Here and there (via MailingList and Google) bits and pieces, but altogether
it didn't help me a lot. Though I would have said that this is a basic
question. But perhaps too basic, so everbody finds out by
himself?</FONT></DIV>
<DIV><FONT class=Apple-style-span face=Arial><BR
class=khtml-block-placeholder></FONT></DIV>
<DIV><FONT class=Apple-style-span face=Arial>So, can anyone let me know -
giving a coding example - how to re-project a mapfile on-the-fly from for
example Lat/Long (global view) to Lambert or Robin? </FONT></DIV>
<DIV><FONT class=Apple-style-span face=Arial><BR
class=khtml-block-placeholder></FONT></DIV>
<DIV><FONT class=Apple-style-span face=Arial>Thanks a lot for your
help!</FONT></DIV>
<DIV><FONT class=Apple-style-span face=Arial><BR
class=khtml-block-placeholder></FONT></DIV>
<DIV><BR
class=khtml-block-placeholder></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>