[OpenLayers-Dev] krovak projection in proj4js
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
I can see, that OpenLayers.js tried to acces this location:
but the file is not there, and
then I get
this.init is not a function (proj4js.js, line 368)
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,
e-mail: jachym.cepicky gmail com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
Url : http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20080218/f68d934e/attachment.bin
More information about the Dev