<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Messaggio</TITLE>

<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=332145612-16062005><FONT face=Arial size=2>Hi 
all,</FONT></SPAN></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>I have a map 
in UTM projection (indicated in "MAP" section of the 
mapfile):</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>MAP</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>...</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>&nbsp;PROJECTION<BR>&nbsp;&nbsp;"proj=utm"<BR>&nbsp;END<BR>...</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>END</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>No other 
projections are indicated in any "LAYER" section.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>Every layer is 
based on shapefiles.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>Now I want to 
add a layer: another shapefile that is in Cassini-Soldner 
projection.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>To&nbsp;see 
the coordinates of a queried feature, I launch this php 
script:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT><FONT face=Arial><FONT 
size=2><SPAN class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>&lt;?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>$Mappa=ms_newMapObj($map);<BR>$Mappali=$Mappa-&gt;getLayerByName("Mappali");</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>if 
(@$Mappali-&gt;queryByAttributes('PARTKEY', 'E730&nbsp;&nbsp; 50&nbsp; 118', 
MS_SINGLE) == MS_SUCCESS) {<BR>&nbsp;$Index = 
$Mappali-&gt;getResult(0);<BR>&nbsp;$Mappali-&gt;open();<BR>&nbsp;$Shape=$Mappali-&gt;getShape(-1,$Index-&gt;shapeindex);<BR>&nbsp;$minx=$Shape-&gt;bounds-&gt;minx;<BR>&nbsp;$miny=$Shape-&gt;bounds-&gt;miny;<BR>&nbsp;$maxx=$Shape-&gt;bounds-&gt;maxx;<BR>&nbsp;$maxy=$Shape-&gt;bounds-&gt;maxy;<BR>&nbsp;$Mappali-&gt;close();<BR>&nbsp;$x=($minx+$maxx)/2;<BR>&nbsp;$y=($miny+$maxy)/2;<BR>&nbsp;echo 
$x." -&nbsp;".$y;<BR>}</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=332145612-16062005>?&gt;</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>and I obtain 
two values for x and y center point.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>But if I add a 
"PROJECTION" section to my new layer, whatever projection I&nbsp;give,&nbsp;I 
obtain always the same X-Y values!</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>Is it 
normal?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>How can I 
check coordinates of my point in different projections (and see what projection 
is right)?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>I give these 
parameters for my new layer:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>LAYER</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>...</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>&nbsp;PROJECTION<BR></SPAN></FONT></FONT><FONT 
face=Arial><FONT size=2><SPAN class=332145612-16062005>&nbsp; 
"proj=cass"<BR>&nbsp;&nbsp;"ellps=bessel"<BR>&nbsp;&nbsp;"lat_0=44.5318797222" 
#&nbsp; 44° 31&#8217; 54.767"<BR>&nbsp;&nbsp;"lon_0=2.8320858333"&nbsp; # 2° 49' 
55.509"<BR>&nbsp;&nbsp;"units=m"<BR>&nbsp; 
"no_defs"<BR>&nbsp;END</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>...</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>END<BR></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>Are these 
parameters right?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>Do I need 
ohter parameters for Cassini-Soldner (e.g., False Easting and False Northing) 
and, if so, how should I define them (e.g.: x_0=..., &nbsp;y_0=... 
)?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT><FONT face=Arial><FONT 
size=2><SPAN class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>I have the 
newest versions of Mapserver and graphic libraries, installed on a Linux Red Hat 
9:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>[root@linuxd1 
cgi-bin]# ./mapserv -v<BR>MapServer version 4.6.0 OUTPUT=GIF OUTPUT=PNG 
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE 
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE&nbsp;</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>[root@linuxd1 
cgi-bin]# proj<BR>Rel. 4.4.9, 29 Oct 2004</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>Thank you for 
your help,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>&nbsp;&nbsp;&nbsp; Daniele</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN 
class=332145612-16062005>&nbsp;</DIV></SPAN></FONT></FONT></BODY></HTML>