Thanks Mike, Chris,<br><br>Sounds like I'm stuck giving up on the project for the time being. I'd offer to take a stab at it, but my knowledge of C is basically non existent; I wouldn't even know where to start.<br>
<br>In any case, my thanks for the quick answers. It's nice to know I wasn't going insane.<br><br>Josh<br><br><br><br><div class="gmail_quote">On Tue, Mar 24, 2009 at 1:17 PM, Mike Adair <span dir="ltr"><<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Josh,<br>
<br>
No I don't have a schedule for converting the rest of the projection code over to Javascript. It is a matter of converting C code to Javascript and looking at the cassini code it shouldn't be too difficult to do. <br>
As Chris mentioned, on <a href="http://spatialreference.org" target="_blank">spatialreference.org</a> the conversion is done server-side with Proj4.<br>
<br>
Mike<br>
<br>
Josh Rosenthal wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mike,<br>
<br>
Thanks a lot. I couldn't figure out if I was doing something wrong or... In any case, you said 'yet'. 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> <<a href="http://spatialreference.org" target="_blank">http://spatialreference.org</a>> does support those reprojections, though I'm not sure what the back end is over there.<div class="im">
<br>
<br>
In any case, any advice would be welcome,<br>
<br>
Thanks,<br>
<br>
Josh<br>
<br></div>
2009/3/24 Mike Adair <<a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a> <mailto:<a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a>>><div><div></div>
<div class="h5"><br>
<br>
Josh,<br>
<br>
The cassini projection code ("proj=cass") hasn't been implemented<br>
in Proj4js yet.<br>
<br>
Mike<br>
<br>
<br>
Josh Rosenthal wrote:<br>
<br>
Hi Folks,<br>
<br>
I hope I'm sending this to the right list. Apologies if not.<br>
<br>
I'm hitting a bit of a problem with a proj4js conversion, and<br>
I'm hoping someone can help. I'm trying to go from EPSG 4326<br>
to 28193, and I'm just getting my original coordinates<br>
returned. As per <a href="http://spatialreference.org/ref/epsg/28193/" target="_blank">http://spatialreference.org/ref/epsg/28193/</a><br>
, I have the proj4js definition for 28193 as:<br>
Proj4js.defs["EPSG:28193"] = "+proj=cass<br>
+lat_0=31.73409694444445 +lon_0=35.21208055555556<br>
+x_0=170251.555 +y_0=1126867.909 +a=6378300.789 +b=6356566.435<br>
+towgs84=-275.722,94.7824,340.894,-8.001,-4.42,-11.821,1<br>
+units=m +no_defs";<br>
<br>
To demonstrate, I've modified the converter in the proj4js<br>
homepage to also have 28193 (Old Israel Grid/Palestine 1923)<br>
and 2039 (New Israel Grid). You can see the demo here:<br>
<a href="http://arkeotech.googlepages.com/Proj4js.htm" target="_blank">http://arkeotech.googlepages.com/Proj4js.htm</a><br>
Converting the coordinates 35,31 from 4326 to 2039 works fine,<br>
but from 4326 to 28193 just returns 35,31. Looking at the<br>
spatial reference page for 28193, you can use the viewer to<br>
get an approximation for those coordinates... it should be<br>
somewhere roughly around 149353, 1046172<br>
<br>
Any thoughts?<br>
<br>
Thanks,<br>
<br>
Josh<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
MetaCRS mailing list<br></div></div>
<a href="mailto:MetaCRS@lists.osgeo.org" target="_blank">MetaCRS@lists.osgeo.org</a> <mailto:<a href="mailto:MetaCRS@lists.osgeo.org" target="_blank">MetaCRS@lists.osgeo.org</a>><div class="im"><br>
<a href="http://lists.osgeo.org/mailman/listinfo/metacrs" target="_blank">http://lists.osgeo.org/mailman/listinfo/metacrs</a><br>
<br>
<br>
-- Michael Adair<br>
Senior Software Architect<br>
DM Solutions Group Inc.<br>
<br>
Office: (613) 565-5056 x26<br></div>
<a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a> <mailto:<a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a>><div class="im"><br>
<a href="http://www.dmsolutions.ca" target="_blank">http://www.dmsolutions.ca</a><br>
<a href="http://research.dmsolutions.ca" target="_blank">http://research.dmsolutions.ca</a><br>
<br>
<br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
Michael Adair<br>
Senior Software Architect<br>
DM Solutions Group Inc.<br>
<br>
Office: (613) 565-5056 x26<br>
<a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a><br>
<a href="http://www.dmsolutions.ca" target="_blank">http://www.dmsolutions.ca</a><br>
<a href="http://research.dmsolutions.ca" target="_blank">http://research.dmsolutions.ca</a><br>
<br>
<br>
</div></div></blockquote></div><br>