You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
819 B
4 lines
819 B
|
3 years ago
|
const proj4 = require('./dist/proj4-src.js');
|
||
|
|
const crsWKT = 'PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["World Geodetic System 1984 ensemble",SPHEROID["WGS 84",6378137,298.2572236,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9102"]],AXIS["Lat",north],AXIS["Lon",east],AUTHORITY["EPSG","4326"]],PROJECTION["Popular Visualisation Pseudo Mercator",AUTHORITY["EPSG","3856"]],PARAMETER["Latitude of natural origin",0],PARAMETER["Longitude of natural origin",0],PARAMETER["False easting",0],PARAMETER["False northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",east],AXIS["Y",north],AUTHORITY["EPSG","3857"]]';
|
||
|
|
const wgs84ToMap = proj4(crsWKT); // throws exception of type string, value `crsWKT`
|