@itowns/geographic 2.46.1-next.15 → 2.46.1-next.17

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/lib/Crs.js CHANGED
@@ -124,7 +124,7 @@ export function isGeocentric(crs) {
124
124
  export function isValid(crs) {
125
125
  const proj = proj4.defs(crs);
126
126
  if (!proj) {
127
- throw new Error(`Undefined crs '${crs}'. Add it with proj4.defs('${crs}', string)`);
127
+ throw new Error(`Undefined crs '${crs}'. Add it with itowns.CRS.defs('${crs}', wktString)`);
128
128
  }
129
129
  if (!unitFromProj4Unit(proj)) {
130
130
  throw new Error(`No valid unit found for crs '${crs}', found ${proj.units}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itowns/geographic",
3
- "version": "2.46.1-next.15",
3
+ "version": "2.46.1-next.17",
4
4
  "description": "Geodesy",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "proj4": "^2.19.10",
39
- "three": "^0.174.0"
39
+ "three": "^0.182.0"
40
40
  },
41
41
  "homepage": "https://itowns.github.io/"
42
42
  }
package/src/Crs.ts CHANGED
@@ -137,7 +137,7 @@ export function isGeocentric(crs: ProjectionLike) {
137
137
  export function isValid(crs: ProjectionLike) {
138
138
  const proj = proj4.defs(crs);
139
139
  if (!proj) {
140
- throw new Error(`Undefined crs '${crs}'. Add it with proj4.defs('${crs}', string)`);
140
+ throw new Error(`Undefined crs '${crs}'. Add it with itowns.CRS.defs('${crs}', wktString)`);
141
141
  }
142
142
  if (!unitFromProj4Unit(proj)) {
143
143
  throw new Error(`No valid unit found for crs '${crs}', found ${proj.units}`);