Comparing version 2.11.0 to 2.12.0
{ | ||
"name": "proj4", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/proj4js/proj4js", |
{ | ||
"name": "proj4", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "repo": "proj4js/proj4js", |
@@ -36,3 +36,4 @@ var json = require('rollup-plugin-json'); | ||
'geos', | ||
'eqearth' | ||
'eqearth', | ||
'bonne' | ||
]; | ||
@@ -39,0 +40,0 @@ module.exports = function (grunt) { |
@@ -30,2 +30,3 @@ import tmerc from "./projections/tmerc"; | ||
import eqearth from "./projections/eqearth"; | ||
import bonne from "./projections/bonne"; | ||
@@ -61,3 +62,4 @@ var projs = [ | ||
geos, | ||
eqearth | ||
eqearth, | ||
bonne | ||
]; | ||
@@ -64,0 +66,0 @@ |
@@ -21,3 +21,3 @@ import parseCode from './parseCode'; | ||
if(typeof json !== 'object'){ | ||
callback(srsCode); | ||
callback('Could not parse to valid json: ' + srsCode); | ||
return; | ||
@@ -27,3 +27,3 @@ } | ||
if(!ourProj){ | ||
callback(srsCode); | ||
callback('Could not get projection name from: ' + srsCode); | ||
return; | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "proj4", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://proj4js.github.io/proj4js/", |
@@ -31,2 +31,3 @@ import tmerc from './lib/projections/tmerc'; | ||
import eqearth from './lib/projections/eqearth'; | ||
import bonne from './lib/projections/bonne'; | ||
export default function(proj4){ | ||
@@ -63,2 +64,3 @@ proj4.Proj.projections.add(tmerc); | ||
proj4.Proj.projections.add(eqearth); | ||
proj4.Proj.projections.add(bonne); | ||
} |
@@ -1,2 +0,2 @@ | ||
# PROJ4JS [![Build Status](https://api.travis-ci.org/proj4js/proj4js.svg?branch=master)](https://travis-ci.org/proj4js/proj4js) | ||
# PROJ4JS ![Build Status](https://github.com/proj4js/proj4js/actions/workflows/build-and-test.yml/badge.svg) | ||
@@ -31,2 +31,4 @@ Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations. | ||
Wkt strings must be in form of [version 1](https://docs.ogc.org/is/18-010r7/18-010r7.html#196) (earlier than 2015). Have a look at the [wkt-parser](https://github.com/proj4js/wkt-parser) for more info, or use proj strings instead. | ||
Coordinates may be an object of the form `{x:x,y:y}` or an array of the form `[x,y]`. | ||
@@ -33,0 +35,0 @@ |
@@ -868,2 +868,17 @@ var testPoints = [ | ||
xy: [-10758531.055221224, 5794915.366010354] | ||
}, | ||
{ | ||
code: '+proj=bonne +lat_1=10 +lon_0=10', | ||
ll: [4.9, 52.366667], | ||
xy: [-347381.937958562, 4700204.94589969] | ||
}, | ||
{ | ||
code: '+proj=bonne +a=6400000 +lat_1=0.5 +lat_2=2', | ||
ll: [2, 1], | ||
xy: [223368.11557252839, 55884.555246393575] | ||
}, | ||
{ | ||
code: '+proj=bonne +ellps=GRS80 +lat_1=0.5 +lat_2=2', | ||
ll: [2, 1], | ||
xy: [222605.29609715697, 55321.139565494814] | ||
} | ||
@@ -870,0 +885,0 @@ ]; |
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
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
955114
14579
197