[MetaCRS] Proj4js: Bonne projection

Jan Hartmann j.l.h.hartmann at uva.nl
Fri Jan 18 06:28:33 PST 2013


Hi Mike,

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.

Jan

On 01/18/2013 03:10 PM, Michael Adair wrote:
> Jan,
>
> 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.
>
> Mike
>
>
> On 18/01/2013 8:44 AM, Jan Hartmann wrote:
>> Hi all,
>>
>> I am working on a series of old maps using the Bonne projection with 
>> the following Proj-string:
>>
>>  +proj=bonne +lat_1=51.5000 +lon_0=4.8838828  +a=6376950.4 +rf=309.65 
>> +units=m +no_defs <>
>>
>> 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:
>>
>> -how can the bonne projection be added to proj4js?
>> -how can this projection be added to OpenLayers?
>>
>> Jan
>>
>>
>> _______________________________________________
>> MetaCRS mailing list
>> MetaCRS at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/metacrs
>
>
>
> _______________________________________________
> MetaCRS mailing list
> MetaCRS at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/metacrs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/metacrs/attachments/20130118/e321b6c8/attachment.html>


More information about the MetaCRS mailing list