<!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.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2>Thio,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2>The projection definition in your layers should not be set
to auto, because the source data is only ever in one projection. Just because
you shift a map to another zone, for instance, does not cause your source data
to change. MapServer (Chameleon) mus know where to re-project the data FROM (not
TO). Therefore, IF your source data is in zone 49s, put this in your
layers:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2> PROJECTION<BR>
"init=AUTO:32749"<BR> END</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2>Make sure to find out what projection your source data is
in. If in doubt, send us an example coordinate.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2>I suppose you could put the automatic projection in your
mapfile. But it may confuse users if they can see coordinates without knowing
what they are in. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2>Best regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2>Jacob</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=827130503-18072006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><BR>
<BLOCKQUOTE
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> chameleon-bounces@lists.maptools.org
[mailto:chameleon-bounces@lists.maptools.org] <B>On Behalf Of
</B>Thio<BR><B>Sent:</B> 18 July 2006 10:58<BR><B>To:</B> Chameleon
Mailist<BR><B>Subject:</B> [Chameleon] Projection and ZoomAllLayer
fail<BR></FONT><BR></DIV>
<DIV></DIV>Dear forumers..<BR><BR><BR>[Projection fail]<BR>I'd try to
configure my map file with a fixed projection. I use the UTM WGS84 49S for my
data, so i decide to use "auto:42001". But those configuration is fail, my
browser only shows : <BR><BR>Warning: [MapServer Error]:
msProcessProjection(): No such file or directory in
C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line
215<BR><BR>Warning: Failed to open map file
C:\ms4w\apps\webgis\mapscript/../map/webinfo.map in
C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line
215<BR><BR>Fatal error: Call to a member function getprojection() on a
non-object in C:\ms4w\apps\chameleon\htdocs\widgets\MapD<BR><BR><BR>Below is
my map configuration :<BR><BR>MAP<BR> NAME "WebInfo"<BR> STATUS
ON<BR> EXTENT 489495.77 9029110.98 919252.02 9298484.91<BR> SIZE
500 350 <BR> SHAPEPATH "../data/tab"<BR> SYMBOLSET
"../etc/symbols.sym"<BR> FONTSET "../etc/fonts.txt"<BR> IMAGETYPE
GIF<BR> IMAGECOLOR 255 255 255<BR> UNITS METERS<BR>
WEB<BR> IMAGEPATH "/ms4w/tmp/ms_tmp/"<BR>
IMAGEURL "/ms_tmp/"<BR> END <BR>
LEGEND<BR> STATUS ON<BR> OUTLINECOLOR 0 0
0<BR> POSITION LL<BR> KEYSIZE 18 12
<BR> END<BR> <BR> QUERYMAP<BR> STYLE
HILITE<BR> COLOR 255 0 0<BR> END<BR>
PROJECTION<BR> "init=auto:42001"<BR> END<BR>
<BR> LAYER<BR> NAME "APJ"<BR> STATUS
DEFAULT<BR> TYPE POLYGON<BR>
CONNECTIONTYPE OGR<BR> CONNECTION
"apj.tab"<BR> CLASSITEM "APJ"<BR> UNITS
METERS<BR> LABELITEM "APJ"<BR>
LABELMINSCALE 951730<BR>
CLASS<BR> NAME "APJ
BANYUWANGI"<BR> EXPRESSION "APJ
BANYUWANGI"<BR>
LABEL<BR> TYPE
TRUETYPE<BR> FONT
"sans"<BR> SIZE
8<BR> POSITION
CC<BR> COLOR 0 0
0<BR> OUTLINECOLOR 251 255
158<BR> END<BR>
STYLE<BR> COLOR 70 142
68<BR> END<BR>
END<BR> CLASS<BR> NAME "APJ
BOJONEGORO"<BR> EXPRESSION "APJ
BOJONEGORO"<BR>
LABEL<BR> TYPE
TRUETYPE<BR> FONT
"sans"<BR> SIZE
8<BR> POSITION
CC<BR> COLOR 0 0
0<BR> OUTLINECOLOR 251 255
158<BR> END<BR>
STYLE<BR> COLOR 0 255
0<BR> END<BR>
END<BR> CLASS<BR> NAME "APJ
GRESIK"<BR> EXPRESSION "APJ
GRESIK"<BR>
LABEL<BR> TYPE
TRUETYPE<BR> FONT
"sans"<BR> SIZE
8<BR> POSITION
CC<BR> COLOR 0 0
0<BR> OUTLINECOLOR 251 255
158<BR> END<BR>
STYLE<BR> COLOR 0 0
255<BR> END<BR>
END <BR>
PROJECTION<BR>
"init=AUTO:42001"<BR> END<BR> END<BR><BR>
LAYER<BR> NAME "Town"<BR> STATUS
OFF<BR> TYPE POINT<BR> CONNECTIONTYPE
OGR<BR> CONNECTION "towns.tab"<BR> UNITS
METERS<BR> MAXSCALE 951730<BR> LABELITEM
"NAMA_KOTA"<BR> CLASS<BR> NAME
"Town"<BR> TEMPLATE
"ttt_query.html"<BR>
LABEL<BR> TYPE
TRUETYPE<BR> FONT
"sans"<BR> SIZE
8<BR> POSITION
AUTO<BR> COLOR 161 219
231<BR> OUTLINECOLOR 255 255
255<BR> PARTIALS
FALSE<BR> END<BR>
STYLE<BR> SYMBOL
1<BR> COLOR 235 230
48<BR> SIZE
6<BR> END<BR>
END<BR> PROJECTION<BR>
"init=AUTO:42001"<BR> END<BR>
END<BR>END<BR><BR><BR>[ZoomAllLayer fail]<BR>Besides, the "ZoomAllLayers"
widget still fail in my application. When I click on it, nothing changes on
the mapdhtml.<BR><BR>Please tell me what i've done wrong and should i do
next..<BR><BR><BR>Regards..<BR>
<P>
<HR SIZE=1>
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. <A
href="http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com">Great
rates starting at 1¢/min.</A></BLOCKQUOTE></BODY></HTML>