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 <[EMAIL PROTECTED]>: > > 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
signature.asc
Description: Toto je digitálně podepsaná část zprávy
_______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
