Chris is right.  I&#39;m trying to stick to the browser environment for this.  Since I&#39;ve basically requested that if anyone has the know-how and the free time, and the gratuitous goodwill, they convert cass for proj4js, I&#39;ll sketch out the use case as well (ie: why its more than just one wacky unknown on a listserv).<div>
<br></div><div>I&#39;m working on this in response to a query from a friend of mine in Israel.  In Israel, many of the current maps list both New Israeli Grid (EPSG:2039) and Old Israeli Grid (EPSG:28139, transformed with y - 1,000,000), but most of the older records (before the mid 90s) only have OIG. There are also many coordinates in lat/lon (4326) courtesy of the everpresent consumer GPS units.  I&#39;d basically been planning to build a little webapp which would take multiple lines of comma delimited coordinates in one projection, and convert them to another, with output available in html, csv, and as an excel spreadsheet.  Easy to build, with an eye towards being easy and straightforward to use.  Unfortunately, my programming skills get shakier outside of a javascript environment, and in any case, it wouldn&#39;t work as a publically accessible webapp.</div>
<div><br></div><div>Chris, you mentioned proj4js&#39;s js predecessors.  Do any of them handle the cass projections?  I&#39;m only familiar with proj4js.</div><div><br></div><div>Thanks,</div><div><br></div><div>Josh<br><div>
<br><div class="gmail_quote">On Tue, Mar 24, 2009 at 4:26 PM, Christopher Schmidt <span dir="ltr">&lt;<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Mar 24, 2009 at 01:22:15PM -0700, Hugues Wisniewski wrote:<br>
&gt; One solution would be the MapGuide API I think. SWIG is used on the C++ API to generate java APIs<br>
<br>
</div>Java is not Javascript; Javascript runs in a browser environment, rather<br>
than on the server, which is what the OP is looking for. No library<br>
other than proj4js (or its predecessors in Javascript land) does this at<br>
this time.<br>
<br>
-- Chris<br>
<div><div></div><div class="h5"><br>
&gt; -----Original Message-----<br>
&gt; From: Christopher Schmidt [mailto:<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>]<br>
&gt; Sent: Tuesday, March 24, 2009 12:11 PM<br>
&gt; To: Hugues Wisniewski<br>
&gt; Cc: Josh Rosenthal; Mike Adair; <a href="mailto:metacrs@lists.osgeo.org">metacrs@lists.osgeo.org</a><br>
&gt; Subject: Re: [MetaCRS] Proj4js: Converting from EPSG:4326 -&gt; EPSG:28193 fails<br>
&gt;<br>
&gt; On Tue, Mar 24, 2009 at 12:02:27PM -0700, Hugues Wisniewski wrote:<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; I don&#39;t know if you&#39;d be interested in this but CsMap supports this Cassini projection and the system 28193<br>
&gt; &gt; You can access the CsMap API or if you have access to the MapGuide MgCoordinateSystem API that is a wrapper around CsMap you can do it too<br>
&gt;<br>
&gt; Proj.4 does as well; but neither proj.4 nor CsMap are accessible in<br>
&gt; Javascript.<br>
&gt;<br>
&gt; -- Chris<br>
&gt;<br>
&gt; &gt; Hugues<br>
&gt; &gt;<br>
&gt; &gt; From: <a href="mailto:metacrs-bounces@lists.osgeo.org">metacrs-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:metacrs-bounces@lists.osgeo.org">metacrs-bounces@lists.osgeo.org</a>] On Behalf Of Josh Rosenthal<br>

&gt; &gt; Sent: Tuesday, March 24, 2009 9:45 AM<br>
&gt; &gt; To: Mike Adair<br>
&gt; &gt; Cc: <a href="mailto:metacrs@lists.osgeo.org">metacrs@lists.osgeo.org</a><br>
&gt; &gt; Subject: Re: [MetaCRS] Proj4js: Converting from EPSG:4326 -&gt; EPSG:28193 fails<br>
&gt; &gt;<br>
&gt; &gt; Hi Mike,<br>
&gt; &gt;<br>
&gt; &gt; Thanks a lot.  I couldn&#39;t figure out if I was doing something wrong or...  In any case, you said &#39;yet&#39;.  Is there a timeline as to when we could expect cassini projections to be supported, or do you have any other suggestions as to how to convert coordinates to/from that?  Curiously, it appears as though <a href="http://spatialreference.org" target="_blank">spatialreference.org</a>&lt;<a href="http://spatialreference.org" target="_blank">http://spatialreference.org</a>&gt; does support those reprojections, though I&#39;m not sure what the back end is over there.<br>

&gt; &gt;<br>
&gt; &gt; In any case, any advice would be welcome,<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; Josh<br>
&gt; &gt; 2009/3/24 Mike Adair &lt;<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>&lt;mailto:<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>&gt;&gt;<br>
&gt; &gt; Josh,<br>
&gt; &gt;<br>
&gt; &gt; The cassini projection code (&quot;proj=cass&quot;) hasn&#39;t been implemented in Proj4js yet.<br>
&gt; &gt;<br>
&gt; &gt; Mike<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Josh Rosenthal wrote:<br>
&gt; &gt; Hi Folks,<br>
&gt; &gt;<br>
&gt; &gt; I hope I&#39;m sending this to the right list.  Apologies if not.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m hitting a bit of a problem with a proj4js conversion, and I&#39;m hoping someone can help.  I&#39;m trying to go from EPSG 4326 to 28193, and I&#39;m just getting my original coordinates returned.  As per <a href="http://spatialreference.org/ref/epsg/28193/" target="_blank">http://spatialreference.org/ref/epsg/28193/</a> , I have the proj4js definition for 28193 as:<br>

&gt; &gt; Proj4js.defs[&quot;EPSG:28193&quot;] = &quot;+proj=cass +lat_0=31.73409694444445 +lon_0=35.21208055555556 +x_0=170251.555 +y_0=1126867.909 +a=6378300.789 +b=6356566.435 +towgs84=-275.722,94.7824,340.894,-8.001,-4.42,-11.821,1 +units=m +no_defs&quot;;<br>

&gt; &gt;<br>
&gt; &gt; To demonstrate, I&#39;ve modified the converter in the proj4js homepage to also have 28193 (Old Israel Grid/Palestine 1923) and 2039 (New Israel Grid).  You can see the demo here: <a href="http://arkeotech.googlepages.com/Proj4js.htm" target="_blank">http://arkeotech.googlepages.com/Proj4js.htm</a><br>

&gt; &gt; Converting the coordinates 35,31 from 4326 to 2039 works fine, but from 4326 to 28193 just returns 35,31.  Looking at the spatial reference page for 28193, you can use the viewer to get an approximation for those coordinates... it should be somewhere roughly around 149353, 1046172<br>

&gt; &gt;<br>
&gt; &gt; Any thoughts?<br>
&gt; &gt;<br>
&gt; &gt; Thanks,<br>
&gt; &gt;<br>
&gt; &gt; Josh<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------------------------------------------------<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; MetaCRS mailing list<br>
&gt; &gt; <a href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a>&lt;mailto:<a href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a>&gt;<br>
&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/metacrs" target="_blank">http://lists.osgeo.org/mailman/listinfo/metacrs</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt;  Michael Adair<br>
&gt; &gt;  Senior Software Architect<br>
&gt; &gt;  DM Solutions Group Inc.<br>
&gt; &gt;<br>
&gt; &gt;  Office: (613) 565-5056 x26<br>
&gt; &gt;  <a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>&lt;mailto:<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>&gt;<br>
&gt; &gt;  <a href="http://www.dmsolutions.ca" target="_blank">http://www.dmsolutions.ca</a><br>
&gt; &gt;  <a href="http://research.dmsolutions.ca" target="_blank">http://research.dmsolutions.ca</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; MetaCRS mailing list<br>
&gt; &gt; <a href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a><br>
&gt; &gt; <a href="http://lists.osgeo.org/mailman/listinfo/metacrs" target="_blank">http://lists.osgeo.org/mailman/listinfo/metacrs</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Christopher Schmidt<br>
&gt; MetaCarta<br>
<br>
</div></div><font color="#888888">--<br>
Christopher Schmidt<br>
MetaCarta<br>
</font></blockquote></div><br></div></div>