Transform without axis order in proj4

This commit is contained in:
Andreas Hocevar
2020-05-23 20:59:08 +02:00
parent 6802fb7e34
commit 49658709c7
2 changed files with 23 additions and 2 deletions

View File

@@ -728,6 +728,20 @@ describe('ol.proj', function () {
clearAllProjections();
addCommon();
});
it('does not flip axis order', function () {
proj4.defs('enu', '+proj=longlat');
proj4.defs('neu', '+proj=longlat +axis=neu');
register(proj4);
const got = transform([1, 2], 'neu', 'enu');
expect(got).to.eql([1, 2]);
delete proj4.defs.enu;
delete proj4.defs.neu;
clearAllProjections();
addCommon();
});
});
describe('ol.proj.Projection.prototype.getMetersPerUnit()', function () {