Hi <br>
<h3 class="EP8xU" style="color: rgb(121, 6, 25);"><span>José María Michia</span></h3>
I cant understand whats wrong with my msg....why u did nt understand my
query...Actually what I am trying to say that........I wrote one jsp
<a href="http://application.as">application.as</a> well as mapserver application in which I used
phpmapscript..Both are different modules. Now I want to integrate both
of these. What I have done is that I created one link (with anchor tag)
from jsp page to mapserver page.( Both are using different port. )It
works fine.&nbsp; my question is that why it is running.. I thought that
mapserver executable file is CGI based ..and to do integration with
tomcat CGI servlet must be required. Actually whats happen is according
to me , both are differnt server...and when I run my jsp 1st server
with a port is running and then when I called mapserver from jsp it
mean that I am saying tomcat to stop and listen an another server with
differnt port . its like one executable file is called from one
application.....and I am getting output.but someone told me that it
should not be run&nbsp; because of cgi ..........I did not get......that s
why I am asking that please let me clear about this..............<br>
<br>
<br>
And regarding my 1st question u suggest one function............which I
already wrote in PHP.(given below)......but I think u did not get this
question also.....Actually I have several pictures(not raster data)&nbsp;
which I taken from google snapshot......but their extent is
(0,0,456,567size=456X567)(0,0,567,657) like that......Look, all images
have minx and miny 0.....so how I will convert this one to lat long
form....or from where I will get lat long data.....I hope now u will
get........and&nbsp; reply me soon..........<br>
<br>
Thanks...........<br>
Amiya Patra<br>
<br>
<br>
<br>
<br>
// Convert from image to map coordinates<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; function img2map($width,$height,$point,$ext) <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $minx = $ext-&gt;minx;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $miny = $ext-&gt;miny;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $maxx = $ext-&gt;maxx;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $maxy = $ext-&gt;maxy;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ($point-&gt;x &amp;&amp; $point-&gt;y)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $x = $point-&gt;x;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $y = $point-&gt;y;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $dpp_x = ($maxx-$minx)/$width;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $dpp_y = ($maxy-$miny)/$height;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $x = $minx + $dpp_x*$x;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $y = $maxy - $dpp_y*$y;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $pt[0] = $x;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; $pt[1] = $y;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return $pt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>