Attention please <br><br>How to write code calculate distance between two points using php mapserver.<br>How to write code to find shortest path using php 
mapserver.<br><br>
On Fri, 14 Jan 2011 02:41:21 +0530 mapserver-users-request@lists.osgeo.org wrote<br>
&gt;Send mapserver-users mailing list submissions to<br>
&gt;mapserver-users@lists.osgeo.org<br>
&gt;<br>
&gt;To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt;http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
&gt;or, via email, send a message with subject or body 'help' to<br>
&gt;mapserver-users-request@lists.osgeo.org<br>
&gt;<br>
&gt;You can reach the person managing the list at<br>
&gt;mapserver-users-owner@lists.osgeo.org<br>
&gt;<br>
&gt;When replying, please edit your Subject line so it is more specific<br>
&gt;than "Re: Contents of mapserver-users digest..."<br>
&gt;<br>
&gt;<br>
&gt;Today's Topics:<br>
&gt;<br>
&gt;  1. Re: Reporting lat/long from projected map units<br>
&gt;   (Milo van der Linden)<br>
&gt;<br>
&gt;<br>
&gt;----------------------------------------------------------------------<br>
&gt;<br>
&gt;Message: 1<br>
&gt;Date: Thu, 13 Jan 2011 17:08:59 +0100<br>
&gt;From: Milo van der Linden &lt;milo@dogodigi.net&gt;<br>
&gt;Subject: Re: [mapserver-users] Reporting lat/long from projected map<br>
&gt;units<br>
&gt;To: "Bistrais, Bob" &lt;Bob.Bistrais@maine.gov&gt;<br>
&gt;Cc: mapserver-users &lt;mapserver-users@lists.osgeo.org&gt;<br>
&gt;Message-ID:<br>
&gt;&lt;AANLkTimnt1n+sfvnXjJQ0Rk65Hf8LmFewb1_MQ5hV37j@mail.gmail.com&gt;<br>
&gt;Content-Type: text/plain; charset="utf-8"<br>
&gt;<br>
&gt;Mmm, that shouldn't be to hard. Let me try;<br>
&gt;<br>
&gt;var source = new Proj4js.Proj(‘EPSG:YOUR_UTM_EPSGCODE’);<br>
&gt;var dest = new Proj4js.Proj(‘EPSG:4326’); . . .<br>
&gt;<br>
&gt;// transforming point coordinates<br>
&gt;var p = new Proj4js.Point(YOUR_UTM_X,YOUR_UTM_Y);<br>
&gt;Proj4js.transform(source, dest, p);<br>
&gt;<br>
&gt;alert(p.x); //WILL ALERT YOUR NEW LON<br>
&gt;alert(p.y); //WILL ALERT YOUR NEW LAT<br>
&gt;<br>
&gt;<br>
&gt;2011/1/13 Bistrais, Bob &lt;Bob.Bistrais@maine.gov&gt;<br>
&gt;<br>
&gt;&gt; I downloaded the code and am looking at the Wiki. I don’t see anything<br>
&gt;&gt; to input screen or UTM coords. Is it in the code somewhere?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; *From:* Milo van der Linden [mailto:milo@dogodigi.net]<br>
&gt;&gt; *Sent:* Wednesday, January 12, 2011 12:44 PM<br>
&gt;&gt; *To:* mapserver-users<br>
&gt;&gt;<br>
&gt;&gt; *Subject:* Re: [mapserver-users] Reporting lat/long from projected map<br>
&gt;&gt; units<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; (Sorry, my last posts went straight to you by accident, I prefer to stay on<br>
&gt;&gt; the list, but gmail for applications not always agrees with me)<br>
&gt;&gt;<br>
&gt;&gt; proj4js has project pages including documentation on the OSGeo wiki. The<br>
&gt;&gt; userguide is here:<br>
&gt;&gt;<br>
&gt;&gt; http://trac.osgeo.org/proj4js/wiki/UserGuide<br>
&gt;&gt;<br>
&gt;&gt; and it immediately explains what you want<br>
&gt;&gt;<br>
&gt;&gt; 2011/1/12 Bistrais, Bob &lt;Bob.Bistrais@maine.gov&gt;<br>
&gt;&gt;<br>
&gt;&gt; Yes, I can get UTM coordinates back. Can you elaborate a bit on proj4js?<br>
&gt;&gt; I’m not familiar with that.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; *From:* Milo van der Linden [mailto:milo@dogodigi.net]<br>
&gt;&gt; *Sent:* Wednesday, January 12, 2011 11:10 AM<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; *To:* Bistrais, Bob<br>
&gt;&gt; *Subject:* Re: [mapserver-users] Reporting lat/long from projected map<br>
&gt;&gt; units<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Well then one question remains:<br>
&gt;&gt;<br>
&gt;&gt; Are you able to convert screen coords to UTM capturing an onclick event?<br>
&gt;&gt; Because then all you need to do is enhance it with proj4js<br>
&gt;&gt;<br>
&gt;&gt; 2011/1/12 Bistrais, Bob &lt;Bob.Bistrais@maine.gov&gt;<br>
&gt;&gt;<br>
&gt;&gt; Yes, a web mapping application. Not using Open Layers. We are using<br>
&gt;&gt; PHP-Mapscript/HTML/JavaScript. All queryable data is in shapefiles, again,<br>
&gt;&gt; all of these are in UTM.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------<br>
&gt;&gt;<br>
&gt;&gt; *From:* Milo van der Linden [mailto:milo@dogodigi.net]<br>
&gt;&gt; *Sent:* Wednesday, January 12, 2011 11:03 AM<br>
&gt;&gt; *To:* Bistrais, Bob<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; *Subject:* Re: [mapserver-users] Reporting lat/long from projected map<br>
&gt;&gt; units<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Are you talking bout a web-app? Do you use a client like OpenLayers? What<br>
&gt;&gt; programming language(s) do you use? Is your datasource a database? Like<br>
&gt;&gt; postgis?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; If you can get UTM coordinates from the mouseclick, the next best option<br>
&gt;&gt; (in my opinion) would be to use proj4js:<br>
&gt;&gt;<br>
&gt;&gt; http://proj4js.org/<br>
&gt;&gt;<br>
&gt;&gt; Simply embed the js-library ad an event for mouse handling and convert:<br>
&gt;&gt; screen-&gt;utm-&gt;4326.<br>
&gt;&gt;<br>
&gt;&gt;  2011/1/12 Bistrais, Bob &lt;Bob.Bistrais@maine.gov&gt;<br>
&gt;&gt;<br>
&gt;&gt; This should be fairly straightforward, but I was wondering what is the<br>
&gt;&gt; easiest and quickest way to convert coordinates on the fly. All my data is<br>
&gt;&gt; in UTM coordinates. I want to report coordinates to the screen in<br>
&gt;&gt; Lat/Long. Changing the projections on the map files to lat/long (EPSG:4326)<br>
&gt;&gt; is not an option, as this will cause problems elsewhere. So what I want to<br>
&gt;&gt; do is take point coordinates, either from a mouse click or from UTM<br>
&gt;&gt; coordinates, project to lat/long, which will be reported in a result<br>
&gt;&gt; window. What is the quickest way to do this?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; mapserver-users mailing list<br>
&gt;&gt; mapserver-users@lists.osgeo.org<br>
&gt;&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;-------------- next part --------------<br>
&gt;An HTML attachment was scrubbed...<br>
&gt;URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110113/bc3cccd9/attachment-0001.html<br>
&gt;<br>
&gt;------------------------------<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;mapserver-users mailing list<br>
&gt;mapserver-users@lists.osgeo.org<br>
&gt;http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
&gt;<br>
&gt;<br>
&gt;End of mapserver-users Digest, Vol 36, Issue 20<br>
&gt;***********************************************<br>
&gt;<br><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A>