Ok..<div><br></div><div>I already had the proj4js, but I was trying to transform to 4230, and the result was not what I expected.</div><div>Now i&#39;m using the 4668 and it seems to be ok!<br><br></div><div>Thanks a lot!</div>
<div><br><div class="gmail_quote">2011/2/11 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org">ahocevar@opengeo.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
if you want to do this on the client, you will need proj4js (<a href="http://proj4js.org" target="_blank">http://proj4js.org</a>). To use it, add the following to your html page:<br>
<br>
&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://proj4js.org/lib/proj4js-compressed.js" target="_blank">http://proj4js.org/lib/proj4js-compressed.js</a>&gt;&lt;/script&gt;<br>
&lt;script type=&quot;text/javascript&quot;&gt;<br>
Proj4js.defs[&quot;EPSG:4230&quot;] = &quot;+proj=longlat +ellps=intl +no_defs&quot;;<br>
Proj4js.defs[&quot;EPSG:4668&quot;] = &quot;+proj=longlat +ellps=intl +towgs84=-86,-98,-119,0,0,0,0 +no_defs&quot;;<br>
&lt;/script&gt;<br>
<br>
The EPSG code for ED50 is EPSG:4230, and for ED79 it is EPSG:4668. As you can see in the above definition, you won&#39;t have much luck with ED50, because the EPSG database does not have transformation parameters. For ED79, however, we can at least do a 3-parameter transformation.<br>

<br>
Now to convert a point from EPSG:900913 to ED79, you would do exactly as if you&#39;d convert to WGS84, but use &quot;EPSG:4668&quot; instead of &quot;EPSG:4326&quot; as EPSG code.<br>
<br>
Note that you can find all available EPSG codes at <a href="http://spatialreference.org/" target="_blank">http://spatialreference.org/</a>.<br>
<br>
Regards,<br>
Andreas.<br>
<div><div></div><div class="h5"><br>
On Feb 11, 2011, at 13:00 , jkm wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I would like to know if is there any way to change the datum of a point..<br>
&gt;<br>
&gt; I&#39;m working with a google maps base layer, and it returns the coordinates in EPSG:900913 and I transform them to WGS84. But what I would like, is to get lat/lon, in european79 or european50.<br>
&gt;<br>
&gt; I&#39;ve seen in proj4js that there is a datum_transform function.. But it doesn&#39;t seem to transform the coordinates&#39; datum..<br>
&gt;<br>
&gt; I&#39;m in the right way? or what is supposed to do in that case?<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Andreas Hocevar<br>
OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
Expert service straight from the developers.<br>
<br>
</font></blockquote></div><br></div>