<!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> </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> PROJECTION<BR> "proj=utm"<BR> 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> </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> </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> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>To 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> </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>$Mappa=ms_newMapObj($map);<BR>$Mappali=$Mappa->getLayerByName("Mappali");</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=332145612-16062005>if
(@$Mappali->queryByAttributes('PARTKEY', 'E730 50 118',
MS_SINGLE) == MS_SUCCESS) {<BR> $Index =
$Mappali->getResult(0);<BR> $Mappali->open();<BR> $Shape=$Mappali->getShape(-1,$Index->shapeindex);<BR> $minx=$Shape->bounds->minx;<BR> $miny=$Shape->bounds->miny;<BR> $maxx=$Shape->bounds->maxx;<BR> $maxy=$Shape->bounds->maxy;<BR> $Mappali->close();<BR> $x=($minx+$maxx)/2;<BR> $y=($miny+$maxy)/2;<BR> echo
$x." - ".$y;<BR>}</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=332145612-16062005>?></SPAN></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>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> </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 give, 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> </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> </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>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> </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> PROJECTION<BR></SPAN></FONT></FONT><FONT
face=Arial><FONT size=2><SPAN class=332145612-16062005>
"proj=cass"<BR> "ellps=bessel"<BR> "lat_0=44.5318797222"
# 44° 31’ 54.767"<BR> "lon_0=2.8320858333" # 2° 49'
55.509"<BR> "units=m"<BR>
"no_defs"<BR> 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=..., y_0=...
)?</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></SPAN></FONT></FONT><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>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> </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 </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>[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> </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>Thank you for
your help,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=332145612-16062005> Daniele</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=332145612-16062005> </DIV></SPAN></FONT></FONT></BODY></HTML>