[OpenLayers-Dev] krovak projection in proj4js

Jachym Cepicky jachym.cepicky at gmail.com
Mon Feb 18 12:26:51 EST 2008


Thanks for the advice, but I'm afraid, it is not that simple. When I try
to initialize new epsg code:

Proj4js.defs["EPSG:102067"] = "+proj=krovak +lat_0=49.5
+lon_0=24.83333333333333 +alpha=30.28813975277778 +k=0.9999 +x_0=0
+y_0=0 +ellps=bessel +units=m
+towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 no_defs";

I can see, that OpenLayers.js tried to acces this location:
http://localhost/~jachym/lib/projCode/krovak.js

but the file is not there, and 

then I get

this.init is not a function (proj4js.js, line 368)

Jachym


Martijn van Oosterhout píše v Po 18. 02. 2008 v 17:49 +0100:
> 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,
-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080218/f68d934e/attachment.bin


More information about the Dev mailing list