[OpenLayers-Dev] krovak projection in proj4js

Martijn van Oosterhout kleptog at gmail.com
Mon Feb 18 11:49:59 EST 2008


2008/2/18 Jachym Cepicky <jachym.cepicky at gmail.com>:
> Hi,
>
> I would like to use Krovak projection in OpenLayers, for some
> reprojection from/to wgs84, however, krovak.js seems not to be included
> in proj4js/defs directory.
>
> Is there any "howto" about converting PJ_*.c files from proj4 to *.js
> files proj4js ? Could eventually anybody do this for me?

No need to install anything, at the beginning of your script you can add:
Proj4js.defs["EPSG:xxxx"] = "+proj=dkjfhsk +foo=bar ....";

I never did get the autoloading of projections to work for me, so I
just hardcoded them.

Have a nice day,
-- 
Martijn van Oosterhout <kleptog at gmail.com> http://svana.org/kleptog/



More information about the Dev mailing list