Commit 7f6fbc4d authored by Calvin Metcalf's avatar Calvin Metcalf
Browse files

wkt test doesn't really do anything thing anymore

parent 912862ea
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -227,20 +227,6 @@ describe('proj4', function () {
  })
	
	});
	describe('wkt',function(){
		aWKT.forEach(function(wkt){
			it('should work with '+wkt.name,function(){
				var testProj = new proj4.Proj(wkt.wkt);
				assert.equal(testProj.srsCode,wkt.name,'correct name');
				assert.equal(testProj.units,wkt.units,'correct units');
				assert.equal(testProj.projName,wkt.proj,'correct type');
				if(wkt.testPoint){
				   assert.closeTo(proj4(wkt.wkt).forward(wkt.testPoint[0])[0],proj4(wkt.code).forward(wkt.testPoint[0])[0],1)
				  assert.closeTo(proj4(wkt.wkt).inverse(wkt.testPoint[1])[0],proj4(wkt.code).inverse(wkt.testPoint[1])[0],1)
				}
			});
		});
	});
});
    if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
      else { mocha.run(); }
+0 −14
Original line number Diff line number Diff line
@@ -205,20 +205,6 @@ describe('proj4', function () {
  })
	
	});
	describe('wkt',function(){
		aWKT.forEach(function(wkt){
			it('should work with '+wkt.name,function(){
				var testProj = new proj4.Proj(wkt.wkt);
				assert.equal(testProj.srsCode,wkt.name,'correct name');
				assert.equal(testProj.units,wkt.units,'correct units');
				assert.equal(testProj.projName,wkt.proj,'correct type')
				if(wkt.testPoint){
				   assert.closeTo(proj4(wkt.wkt).forward(wkt.testPoint[0])[0],proj4(wkt.code).forward(wkt.testPoint[0])[0],1)
				  assert.closeTo(proj4(wkt.wkt).inverse(wkt.testPoint[1])[0],proj4(wkt.code).inverse(wkt.testPoint[1])[0],1)
				}
			});
		});
	});
});
   window.run();
});
+1 −14
Original line number Diff line number Diff line
@@ -198,20 +198,7 @@ describe('proj4', function () {
  })
	
	});
	describe('wkt',function(){
		aWKT.forEach(function(wkt){
			it('should work with '+wkt.name,function(){
				var testProj = new proj4.Proj(wkt.wkt);
				assert.equal(testProj.srsCode,wkt.name,'correct name');
				assert.equal(testProj.units,wkt.units,'correct units');
				assert.equal(testProj.projName,wkt.proj,'correct type');
				if(wkt.testPoint){
				   assert.closeTo(proj4(wkt.wkt).forward(wkt.testPoint[0])[0],proj4(wkt.code).forward(wkt.testPoint[0])[0],1)
				  assert.closeTo(proj4(wkt.wkt).inverse(wkt.testPoint[1])[0],proj4(wkt.code).inverse(wkt.testPoint[1])[0],1)
				}
			});
		});
	});
	
});

   if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
+0 −26
Original line number Diff line number Diff line
@@ -249,29 +249,3 @@ var testPoints = [
    xy:[-8237642.318702244, 5012341.663847514]
  }
];
var aWKT = [
{
  name:'WGS84 Lat/Long Degrees -180 ==> +180',
  units:'degree',
  proj:'longlat',
  wkt:'GEOGCS["WGS84 Lat/Long Degrees -180 ==> +180",DATUM["D_WGS_1984",SPHEROID["World_Geodetic_System_of_1984",6378137,298.257222932867]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]'
},
{
	name:'ALG-S-AN',
	units:'meter',
	proj:'lcc',
	wkt:'PROJCS["ALG-S-AN",GEOGCS["VOIR1875",DATUM["VOIR1875",SPHEROID["CLRK-IGN",6378249.200,293.46602129],TOWGS84[-73.0000,-247.0000,227.0000,0.000000,0.000000,0.000000,0.00000000]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Lambert Tangential Conformal Conic Projection"],PARAMETER["false_easting",500000.000],PARAMETER["false_northing",300000.000],PARAMETER["scale_factor",0.999625800000],PARAMETER["central_meridian",2.70000000000000],PARAMETER["latitude_of_origin",33.30000000000000],UNIT["Meter",1.00000000000000]]'
},
{
	name:'CANQ27-M15M',
	units:'meter',
	proj:'tmerc',
	wkt:'PROJCS["CANQ27-M15M",GEOGCS["LL27",DATUM["NAD27",SPHEROID["CLRK66",6378206.400,294.97869821]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",304800.000],PARAMETER["false_northing",0.000],PARAMETER["scale_factor",0.999900000000],PARAMETER["central_meridian",-90.00000000000000],PARAMETER["latitude_of_origin",0.00000000000000],UNIT["Meter",1.00000000000000]]'
},
{
	name:'Non-Earth (Meter)',
	units:'meter',
	proj:'identity',
	wkt:'LOCAL_CS["Non-Earth (Meter)",LOCAL_DATUM["Local Datum",0],UNIT["Meter", 1],AXIS["X",EAST],AXIS["Y",NORTH]]'
}
];