Comparing version 2.6.2 to 2.6.3
{ | ||
"name": "proj4", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/proj4js/proj4js", |
{ | ||
"name": "proj4", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "repo": "proj4js/proj4js", |
@@ -33,3 +33,4 @@ var json = require('rollup-plugin-json'); | ||
'robin', | ||
'geocent' | ||
'geocent', | ||
'tpers' | ||
]; | ||
@@ -36,0 +37,0 @@ module.exports = function (grunt) { |
@@ -34,7 +34,13 @@ export default function(crs, denorm, point) { | ||
case 'e': | ||
out[t] = v; | ||
break; | ||
case 'w': | ||
out[t] = -v; | ||
break; | ||
case 'n': | ||
case 's': | ||
out[t] = v; | ||
break; | ||
case 's': | ||
out[t] = -v; | ||
break; | ||
case 'u': | ||
@@ -41,0 +47,0 @@ if (point[t] !== undefined) { |
@@ -27,2 +27,3 @@ import tmerc from "./projections/tmerc"; | ||
import geocent from './projections/geocent'; | ||
import tpers from './projections/tpers'; | ||
@@ -55,3 +56,4 @@ var projs = [ | ||
robin, | ||
geocent | ||
geocent, | ||
tpers | ||
]; | ||
@@ -58,0 +60,0 @@ |
{ | ||
"name": "proj4", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "main": "dist/proj4-src.js", |
@@ -28,2 +28,3 @@ import tmerc from './lib/projections/tmerc'; | ||
import geocent from './lib/projections/geocent'; | ||
import tpers from './lib/projections/tpers'; | ||
export default function(proj4){ | ||
@@ -57,2 +58,3 @@ proj4.Proj.projections.add(tmerc); | ||
proj4.Proj.projections.add(geocent); | ||
proj4.Proj.projections.add(tpers); | ||
} |
Publishing | ||
=== | ||
Make sure you have the latest from the main branch: | ||
git pull origin master | ||
Use `tin` to update the version number in the `package.json`, `component.json` & `bower.json`. | ||
@@ -5,0 +9,0 @@ |
@@ -251,2 +251,14 @@ // You can do this in the grunt config for each mocha task, see the `options` config | ||
it('axes should be invertable', function () { | ||
var enu = '+proj=longlat +axis=enu'; | ||
var esu = '+proj=longlat +axis=esu'; | ||
var wnu = '+proj=longlat +axis=wnu'; | ||
var result = proj4(enu, esu).forward({x: 40, y: 50}); | ||
assert.closeTo(result.x, 40, 0.000001); | ||
assert.closeTo(result.y, -50, 0.000001); | ||
var result = proj4(enu, wnu).forward({x: 40, y: 50}); | ||
assert.closeTo(result.x, -40, 0.000001); | ||
assert.closeTo(result.y, 50, 0.000001); | ||
}); | ||
describe('defs', function () { | ||
@@ -253,0 +265,0 @@ assert.equal(proj4.defs('testmerc'), proj4.defs['testmerc']); |
@@ -629,2 +629,74 @@ var testPoints = [ | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +azi=20', | ||
ll: [2, 1], | ||
xy: [170820.288955531, 180460.865555805], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +azi=20', | ||
ll: [2, -1], | ||
xy: [246853.941538942, -28439.878035775], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +azi=20', | ||
ll: [-2, 1], | ||
xy: [-246853.941538942, 28439.878035775], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +azi=20', | ||
ll: [-2, -1], | ||
xy: [-170820.288955531, -180460.865555805], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +tilt=20', | ||
ll: [2, 1], | ||
xy: [213598.340357101, 113687.930830744], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +tilt=20', | ||
ll: [2, -1], | ||
xy: [231609.982792523, -123274.645577324], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +tilt=20', | ||
ll: [-2, 1], | ||
xy: [-213598.340357101, 113687.930830744], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
}, | ||
{ | ||
code: '+proj=tpers +a=6400000 +h=1000000 +tilt=20', | ||
ll: [-2, -1], | ||
xy: [-231609.982792523, -123274.645577324], | ||
acc: { | ||
ll: 5, | ||
xy: 0 | ||
} | ||
} | ||
@@ -638,2 +710,3 @@ ]; | ||
}); | ||
} | ||
} | ||
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
539008
119
12926