Commit 59c4d467 authored by Michael Adair's avatar Michael Adair
Browse files

closes #75: applying the patch

parent 7871cd7b
Loading
Loading
Loading
Loading

lib/defs/EPSG102067.js

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
Proj4js.defs["EPSG:102067"] = "+title=Krovak +proj=krovak +lat_0=49.5 +lon_0=42.5 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +pm=ferro +units=m +towgs84=570.8,85.7,462.8,4.998,1.587,5.261,3.56 +czech +no_defs";
+1 −0
Original line number Diff line number Diff line
@@ -908,6 +908,7 @@ Proj4js.Proj = Proj4js.Class({
              case "towgs84":this.datum_params = paramVal.split(","); break;
              case "to_meter": this.to_meter = parseFloat(paramVal); break; // cartesian scaling
              case "from_greenwich": this.from_greenwich = paramVal*Proj4js.common.D2R; break;
              case "czech": this.czech = true; break;
              // DGR 2008-07-09 : if pm is not a well-known prime meridian take
              // the value instead of 0.0, then convert to radians
              case "pm":     paramVal = paramVal.replace(/\s/gi,"");
+2 −2
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ Proj4js.Proj.krovak = {
		p.y = ro * Math.cos(eps) / 1.0;
		p.x = ro * Math.sin(eps) / 1.0;

		if(this.czech) {
		if(!this.czech) {
	    		p.y *= -1.0;
	    		p.x *= -1.0;
		}
@@ -100,7 +100,7 @@ Proj4js.Proj.krovak = {
		var tmp = p.x;
		p.x=p.y;
		p.y=tmp;
		if(this.czech) {
		if(!this.czech) {
	    		p.y *= -1.0;
	    		p.x *= -1.0;
		}