<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Times New Roman, Times, serif">Hi Mike, <br>
<br>
I had a quick look at a few projections in c and js, but the code
looks really different to me. On the other hand, the functions are
quite short, so perhaps I could do the Bonne projection, if I get
some pointers how to do it.<br>
<br>
Jan<br>
<br>
</font>
<div class="moz-cite-prefix">On 01/18/2013 03:10 PM, Michael Adair
wrote:<br>
</div>
<blockquote cite="mid:50F957D4.9080605@dmsolutions.ca" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Jan,<br>
<br>
You are correct that the Bonne projection hasn't been ported over
from PROJ.4 yet. To implement it would require converting the C
code in pj_Bonne.c to Javascript. All of the projection code
classes implement the init(), forward() and inverse() methods that
are called by Proj4js.transform.<br>
<br>
Mike<br>
<br>
<br>
<div class="moz-cite-prefix">On 18/01/2013 8:44 AM, Jan Hartmann
wrote:<br>
</div>
<blockquote cite="mid:50F951CB.1070504@uva.nl" type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=ISO-8859-1">
Hi all,<br>
<br>
I am working on a series of old maps using the Bonne projection
with the following Proj-string:<br>
<br>
+proj=bonne +lat_1=51.5000 +lon_0=4.8838828 +a=6376950.4
+rf=309.65 +units=m +no_defs <><br>
<br>
Works fine with gdal, mapserver and postgis, but not with
proj4js, as used in OpenLayers. If I add this definition to my
OpenLayers application, to get a real time displayProjection of
the original map projection, I get two large numbers, zeroed on
lat and lon 0. Changing parameters doesn't make any difference.
In looking at the proj4js code, I don't see any mention of
bonne. So here are two questions:<br>
<br>
-how can the bonne projection be added to proj4js?<br>
-how can this projection be added to OpenLayers?<br>
<br>
Jan<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
MetaCRS mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:MetaCRS@lists.osgeo.org">MetaCRS@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/metacrs">http://lists.osgeo.org/mailman/listinfo/metacrs</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
</body>
</html>