mirror of
https://github.com/proj4js/proj4js.git
synced 2026-01-18 16:13:22 +00:00
17 lines
920 B
JavaScript
17 lines
920 B
JavaScript
export default function (defs) {
|
|
defs('EPSG:4326', '+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees');
|
|
defs('EPSG:4269', '+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees');
|
|
defs('EPSG:3857', '+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs');
|
|
// UTM WGS84
|
|
for (var i = 1; i <= 60; ++i) {
|
|
defs('EPSG:' + (32600 + i), '+proj=utm +zone=' + i + ' +datum=WGS84 +units=m');
|
|
defs('EPSG:' + (32700 + i), '+proj=utm +zone=' + i + ' +south +datum=WGS84 +units=m');
|
|
}
|
|
|
|
defs.WGS84 = defs['EPSG:4326'];
|
|
defs['EPSG:3785'] = defs['EPSG:3857']; // maintain backward compat, official code is 3857
|
|
defs.GOOGLE = defs['EPSG:3857'];
|
|
defs['EPSG:900913'] = defs['EPSG:3857'];
|
|
defs['EPSG:102113'] = defs['EPSG:3857'];
|
|
}
|