First commit
This commit is contained in:
commit
87d22a4516
235 changed files with 51802 additions and 0 deletions
28
node_modules/proj4/lib/projections/utm.js
generated
vendored
Normal file
28
node_modules/proj4/lib/projections/utm.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
import adjust_zone from '../common/adjust_zone';
|
||||
import etmerc from './etmerc';
|
||||
export var dependsOn = 'etmerc';
|
||||
import {D2R} from '../constants/values';
|
||||
|
||||
|
||||
export function init() {
|
||||
var zone = adjust_zone(this.zone, this.long0);
|
||||
if (zone === undefined) {
|
||||
throw new Error('unknown utm zone');
|
||||
}
|
||||
this.lat0 = 0;
|
||||
this.long0 = ((6 * Math.abs(zone)) - 183) * D2R;
|
||||
this.x0 = 500000;
|
||||
this.y0 = this.utmSouth ? 10000000 : 0;
|
||||
this.k0 = 0.9996;
|
||||
|
||||
etmerc.init.apply(this);
|
||||
this.forward = etmerc.forward;
|
||||
this.inverse = etmerc.inverse;
|
||||
}
|
||||
|
||||
export var names = ["Universal Transverse Mercator System", "utm"];
|
||||
export default {
|
||||
init: init,
|
||||
names: names,
|
||||
dependsOn: dependsOn
|
||||
};
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue