[MetaCRS] Proj4js: Bonne projection
Michael Adair
madair at dmsolutions.ca
Fri Jan 18 06:10:28 PST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/metacrs/attachments/20130118/f2555457/attachment.html>
More information about the MetaCRS
mailing list