<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jon,<br>
<br>
Proj4js will create the URL and load it for you automatically (for
EPSG codes anyway). The only thing you need to do is wait for it to
be loaded by checking the readyToUse flag on the projection object.<br>
<br>
Mike<br>
<br>
<br>
On 11/2/2010 10:37 AM, Jon Britton wrote:
<blockquote
cite="mid:AANLkTimbDkmAtmM-T4DW88AYOg+tC-jcg_8DLoNvCL6X@mail.gmail.com"
type="cite">Hi guys, thanks for the reply.
<div><br>
</div>
<div>I've noticed that you can use the <a moz-do-not-send="true"
href="http://spatialreference.org">spatialreference.org</a>
REST interface to make calls like:</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="http://spatialreference.org/ref/epsg/2805/proj4js/">http://spatialreference.org/ref/epsg/2805/proj4js/</a></div>
<div><br>
</div>
<div>which gives you the javascript code needed to use the
projection.</div>
<div><br>
</div>
<div>I assume I need to generate a URL for my given projection,
get the contents of the URL and run it as JavaScript.
Unfortunately I've got no idea how to do this!</div>
<div><br>
</div>
<div>Jon<br>
<br>
<div class="gmail_quote">On 1 November 2010 18:46, Clément
Ronzon <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:clem.rz@gmail.com">clem.rz@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Hi Jon,
<div><br>
</div>
<div>I worked on a similar project before : <a
moz-do-not-send="true" href="http://twcc.free.fr"
target="_blank">http://twcc.free.fr</a></div>
<div>You can check the JS sources.</div>
<div><br>
</div>
<div>If you need any help to understand the code, feel free
to contact me !</div>
<div><br>
</div>
<div>Sincerely,<br clear="all">
Clément Ronzon<br>
151 Av. Félix Faure<br>
69003 LYON, FRANCE<br>
Tel. # : +33 (0)9 54 43 12 20<br>
Fax # : +33 (0)9 59 43 12 20<br>
Cell. # : +33 (0)6 08 21 23 27<br>
<a moz-do-not-send="true"
href="http://perso.apec.fr/clement_ronzon1"
target="_blank">http://perso.apec.fr/clement_ronzon1</a><br>
<a moz-do-not-send="true"
href="http://www.computrabajo.com.mx/cvs/clementronzon"
target="_blank">http://www.computrabajo.com.mx/cvs/clementronzon</a><br>
<a moz-do-not-send="true" href="http://twcc.free.fr"
target="_blank">http://twcc.free.fr</a><br>
<a moz-do-not-send="true"
href="http://www.grottocenter.org" target="_blank">http://www.grottocenter.org</a><br>
<a moz-do-not-send="true" href="http://www.zakbag.com"
target="_blank">http://www.zakbag.com</a><br>
<br>
<br>
<div class="gmail_quote">
<div>
<div class="h5">On Mon, Nov 1, 2010 at 6:34 PM, Jon
Britton <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:jonbritton3@googlemail.com"
target="_blank">jonbritton3@googlemail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div>
<div class="h5">
Hi,
<div><br>
</div>
<div>I'm trying to use proj4js in my project and
will need to project to various CRSs. The
projection codes are submitted by the user, so I
have no way of knowing what CRSs will be used.
I've looked at the user guide and it says that
proj4js can dynamically look up CRS info at
run-time, but I can't figure out how to set this
up. When I try and carry out a projection, I
just get the original values back...</div>
<div><br>
</div>
<div>Any help would be appreciated,</div>
<div><br>
</div>
<font color="#888888">
<div>Jon</div>
</font><br>
</div>
</div>
<div class="im">_______________________________________________<br>
MetaCRS mailing list<br>
<a moz-do-not-send="true"
href="mailto:MetaCRS@lists.osgeo.org"
target="_blank">MetaCRS@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/metacrs"
target="_blank">http://lists.osgeo.org/mailman/listinfo/metacrs</a><br>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
MetaCRS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/metacrs">http://lists.osgeo.org/mailman/listinfo/metacrs</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Adair
Senior Software Architect
DM Solutions Group Inc.
Office: (613) 565-5056 x26
<a class="moz-txt-link-abbreviated" href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca">http://www.dmsolutions.ca</a>
<a class="moz-txt-link-freetext" href="http://research.dmsolutions.ca">http://research.dmsolutions.ca</a>
</pre>
</body>
</html>