proj4 2.4.4 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/testData.js CHANGED
@@ -88,6 +88,16 @@ var testPoints = [
88
88
  ll:[-126.54, 54.15],
89
89
  xy:[964813.103719, 1016486.305862]
90
90
  },
91
+ {
92
+ code:'PROJCS["Azimuthal_Equidistant",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Azimuthal_Equidistant"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]]',
93
+ ll:[0, 0],
94
+ xy:[0, 0]
95
+ },
96
+ {
97
+ code:'PROJCS["Sphere_Azimuthal_Equidistant",GEOGCS["GCS_Sphere",DATUM["Not_specified_based_on_Authalic_Sphere",SPHEROID["Sphere",6371000,0]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Azimuthal_Equidistant"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]]',
98
+ ll:[0, 0],
99
+ xy:[0, 0]
100
+ },
91
101
  {
92
102
  code:'PROJCS["North_Pole_Azimuthal_Equidistant",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Azimuthal_Equidistant"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],PARAMETER["Latitude_Of_Origin",90],UNIT["Meter",1]]',
93
103
  ll:[50.977303830208, 30.915260093747],
@@ -222,10 +232,50 @@ var testPoints = [
222
232
  code:'PROJCS["WGS 84 / UPS North",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Stereographic_North_Pole"],PARAMETER["standard_parallel_1",90],PARAMETER["central_meridian",0],PARAMETER["scale_factor",0.994],PARAMETER["false_easting",2000000],PARAMETER["false_northing",2000000],UNIT["Meter",1]]',
223
233
  ll:[0, 75],
224
234
  xy:[2000000, 325449.806286]
235
+ },{
236
+ code:'+proj=aeqd +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
237
+ ll:[2, 0],
238
+ xy:[222638.98158654713, 0]
239
+ },{
240
+ code:'+proj=aeqd +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
241
+ ll:[89, 0],
242
+ xy:[9907434.680601358, 0]
243
+ },{
244
+ // code:'+proj=aeqd +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
245
+ // ll:[91, 0],
246
+ // xy:[10130073.6622, 0]
247
+ // },{
248
+ code:'+proj=aeqd +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs',
249
+ ll:[91, 0],
250
+ xy:[10118738.32, 0.00]
251
+ },{
252
+ code:'+proj=laea +lat_0=2 +lon_0=1 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs',
253
+ ll:[1, 2],
254
+ xy:[0, 0]
255
+ },{
256
+ code:'+proj=laea +lat_0=1 +lon_0=1 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs',
257
+ ll:[1, 1],
258
+ xy:[0, 0]
259
+ },{
260
+ code:'+proj=laea +lat_0=1 +lon_0=1 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs',
261
+ ll:[2, 1],
262
+ xy:[111176.58, 16.93]
263
+ },{
264
+ code:'+proj=laea +lat_0=1 +lon_0=1 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs',
265
+ ll:[1, 2],
266
+ xy:[0.00,111193.52]
267
+ },{
268
+ code:'+proj=laea +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs',
269
+ ll:[19, 0],
270
+ xy:[2103036.59, 0.00]
225
271
  },{
226
272
  code:'+proj=stere +lat_0=-90 +lat_ts=-70 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs"',
227
273
  ll:[0, -72.5],
228
274
  xy:[0, 1910008.78441421]
275
+ },{
276
+ code:'+proj=stere +lat_0=-90 +lon_0=0 +x_0=0 +y_0=0 +a=3396000 +b=3396000 +units=m +no_defs',
277
+ ll:[0, -72.5],
278
+ xy:[0, 1045388.79]
229
279
  },{
230
280
  code:'PROJCS["WGS 84 / NSIDC Sea Ice Polar Stereographic South", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]], PROJECTION["Polar Stereographic (variant B)", AUTHORITY["EPSG","9829"]], PARAMETER["central_meridian", 0.0], PARAMETER["Standard_Parallel_1", -70.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", "North along 90 deg East"], AXIS["Northing", "North along 0 deg"], AUTHORITY["EPSG","3976"]]',
231
281
  ll:[0, -72.5],
@@ -396,6 +446,49 @@ var testPoints = [
396
446
  ll: [2, 1],
397
447
  xy: [247141.3965058987669181, 6326900.0192015860229731]
398
448
  },
449
+ // Robinson
450
+ {
451
+ code: '+proj=robin +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
452
+ ll: [-15, -35],
453
+ xy: [-1335949.91, -3743319.07],
454
+ acc: {ll: 4, xy: 0}
455
+ },
456
+ {
457
+ code: '+proj=robin +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
458
+ ll: [-10, 50],
459
+ xy: [-819964.60, 5326895.52],
460
+ acc: {ll: 4, xy: 0}
461
+ },
462
+ {
463
+ code: '+proj=robin +a=6400000',
464
+ ll: [80, -20],
465
+ xy: [7449059.80, -2146370.56],
466
+ acc: {ll: 4, xy: 0}
467
+ },
468
+ {
469
+ code: '+proj=robin +lon_0=15 +x_0=100000 +y_0=100000 +datum=WGS84',
470
+ ll: [-35, 40],
471
+ xy: [-4253493.26, 4376351.58],
472
+ acc: {ll: 4, xy: 0}
473
+ },
474
+ {
475
+ code: 'PROJCS["World_Robinson",GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Robinson"],PARAMETER["False_Easting",0],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",0],UNIT["Meter",1]]',
476
+ ll: [20, 40],
477
+ xy: [1741397.30, 4276351.58],
478
+ acc: {ll: 4, xy: 0}
479
+ },
480
+ {
481
+ code: 'PROJCS["World_Robinson",GEOGCS["GCS_WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Robinson"],PARAMETER["False_Easting",100000],PARAMETER["False_Northing",100000],PARAMETER["Central_Meridian",15],UNIT["Meter",1]]',
482
+ ll: [-35, 40],
483
+ xy: [-4253493.26, 4376351.58],
484
+ acc: {ll: 4, xy: 0}
485
+ },
486
+ {
487
+ code: '+proj=robin +lon_0=162 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs',
488
+ ll: [-90, 22],
489
+ xy: [9987057.08, 2352946.55],
490
+ acc: {ll: 4, xy: 0}
491
+ },
399
492
  // check that coordinates at 180 and -180 deg. longitude don't wrap around
400
493
  {
401
494
  code: 'EPSG:3857',
@@ -507,20 +600,38 @@ var testPoints = [
507
600
  xy: [-959006.4926646841, 113457.31956265299]
508
601
  },
509
602
  {
510
- code: '+proj=moll +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs',
511
- ll: [-180, 80.11],
512
- xy: [-5837753.259051185, 8534718.648155002]
603
+ code: 'PROJCS["WGS 84 / Pseudo-Mercator", GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 0, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic latitude", NORTH], AXIS["Geodetic longitude", EAST], AUTHORITY["EPSG","4326"]], PROJECTION["Popular Visualisation Pseudo Mercator", AUTHORITY["EPSG","1024"]], PARAMETER["semi_minor", 6378137.0], PARAMETER["latitude_of_origin", 0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor", 1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0], UNIT["m", 1.0], AXIS["Easting", EAST], AXIS["Northing", NORTH], AUTHORITY["EPSG","3857"]]',
604
+ xy: [-12523490.49256873, 5166512.50707369],
605
+ ll: [-112.50042920000004, 42.036926809999976]
606
+ },
607
+ {
608
+ code: 'PROJCS["WGS 84 / Pseudo-Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]],PROJECTION["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",1],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AXIS["X",EAST],AXIS["Y",NORTH],EXTENSION["PROJ4","+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 +wktext +no_defs"],AUTHORITY["EPSG","9999"]]',
609
+ xy: [-12523490.49256873, 5166512.50707369],
610
+ ll: [-112.50042920000004, 42.036926809999976]
513
611
  },
514
612
  {
515
- code: '+proj=moll +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m',
516
- ll: [-180, 80],
517
- xy: [-5879879.246669655, 8527486.041776998]
613
+ code: '+proj=geocent +datum=WGS84 +units=m +no_defs',
614
+ ll: [-7.56234, 38.96618, 0],
615
+ xy: [4922499, -653508, 3989398],
616
+ acc: {
617
+ ll: 0,
618
+ xy: 0
619
+ }
620
+ },
621
+ {
622
+ code: '+proj=geocent +ellps=GRS80 +units=m +no_defs',
623
+ ll: [-7.56234, 38.96618, 1],
624
+ xy: [4922499, -653508, 3989399],
625
+ acc: {
626
+ ll: 0,
627
+ xy: 0
628
+ }
518
629
  }
519
630
  ];
520
- if(typeof module !== 'undefined'){
631
+ if (typeof module !== 'undefined') {
521
632
  module.exports = testPoints;
522
- }else if(typeof define === 'function'){
523
- define(function(){
633
+ } else if (typeof define === 'function') {
634
+ define(function () {
524
635
  return testPoints;
525
636
  });
526
- }
637
+ }
package/.npmignore DELETED
@@ -1,3 +0,0 @@
1
- *~
2
- .c9revisions
3
- coverage
package/dist/.npmignore DELETED
File without changes
package/lib/version.js DELETED
@@ -1 +0,0 @@
1
- export {version as default} from '../package.json';