Comparing version 1.4.0 to 1.4.1-dev.1
{ | ||
"name": "proj4", | ||
"version": "1.4.0", | ||
"version": "1.4.1-dev.1", | ||
"homepage": "https://github.com/proj4js/proj4js", | ||
@@ -5,0 +5,0 @@ "description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", |
{ | ||
"name": "proj4", | ||
"version": "1.4.0", | ||
"version": "1.4.1-dev.1", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/proj4.js", |
@@ -15,2 +15,4 @@ define(function(require) { | ||
this.srsCodeInput = srsCode; | ||
this.x0 = 0; | ||
this.y0 = 0; | ||
var obj; | ||
@@ -17,0 +19,0 @@ if(typeof srsCode === 'string'){ |
@@ -14,5 +14,2 @@ define(function(require) { | ||
var split = a.split("="); | ||
if (split[1] === "@null") { | ||
return; | ||
} | ||
split.push(true); | ||
@@ -90,2 +87,9 @@ paramObj[split[0].toLowerCase()] = split[1]; | ||
}, | ||
nadgrids: function(v) { | ||
if (v==='@null') { | ||
self.datumCode = 'none'; | ||
} else { | ||
self.nadgrids = v; | ||
} | ||
}, | ||
axis: function(v) { | ||
@@ -92,0 +96,0 @@ var legalAxis = "ewnsud"; |
@@ -1,1 +0,1 @@ | ||
define(function(){return '1.4.0';}); | ||
define(function(){return '1.4.1-dev.1';}); |
@@ -15,2 +15,3 @@ #PROJ4JS | ||
jam install proj4 | ||
component install proj4js/proj4js | ||
``` | ||
@@ -17,0 +18,0 @@ |
@@ -20,3 +20,5 @@ | ||
proj4.defs([ | ||
["EPSG:102018", "+proj=gnom +lat_0=90 +lon_0=0 +x_0=6300000 +y_0=6300000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"]//, | ||
["EPSG:102018", "+proj=gnom +lat_0=90 +lon_0=0 +x_0=6300000 +y_0=6300000 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"], | ||
["testmerc", "+proj=merc +lon_0=5.937 +lat_ts=45.027 +ellps=sphere +datum=none"], | ||
["testmerc2", "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +units=m +k=1.0 +nadgrids=@null +no_defs"] | ||
]); | ||
@@ -23,0 +25,0 @@ proj4.defs('esriOnline','PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]'); |
var testPoints = [ | ||
{code: 'testmerc', | ||
xy: [-45007.0787624, 4151725.59875], | ||
ll: [5.364315,46.623154] | ||
}, | ||
{code: 'testmerc2', | ||
xy: [4156404,7480076.5], | ||
ll: [37.33761240175515, 55.60447049026976] | ||
}, | ||
{code: 'PROJCS["CH1903 / LV03",GEOGCS["CH1903",DATUM["D_CH1903",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Hotine_Oblique_Mercator_Azimuth_Center"],PARAMETER["latitude_of_center",46.95240555555556],PARAMETER["longitude_of_center",7.439583333333333],PARAMETER["azimuth",90],PARAMETER["scale_factor",1],PARAMETER["false_easting",600000],PARAMETER["false_northing",200000],UNIT["Meter",1]]', | ||
@@ -3,0 +11,0 @@ xy: [660389.4751110513, 185731.68482649108], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1258146
139
32183
77
3
14
2