@basemaps/cli 6.23.0 → 6.24.0
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/CHANGELOG.md +11 -0
- package/build/cog/builder.js +2 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.24.0](https://github.com/linz/basemaps/compare/v6.23.0...v6.24.0) (2022-04-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **cli:** create instance of EPSG code if not already defined ([#2141](https://github.com/linz/basemaps/issues/2141)) ([9e7b508](https://github.com/linz/basemaps/commit/9e7b508a70aa85f80b88a29501a08c249c9617af))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [6.23.0](https://github.com/linz/basemaps/compare/v6.22.1...v6.23.0) (2022-04-04)
|
|
7
18
|
|
|
8
19
|
|
package/build/cog/builder.js
CHANGED
|
@@ -120,10 +120,11 @@ export class CogBuilder {
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
findProjection(tiff) {
|
|
123
|
+
var _a;
|
|
123
124
|
const image = tiff.getImage(0);
|
|
124
125
|
const projection = image.valueGeo(TiffTagGeo.ProjectedCSTypeGeoKey);
|
|
125
126
|
if (projection != null && projection !== InvalidProjectionCode) {
|
|
126
|
-
return Epsg.
|
|
127
|
+
return (_a = Epsg.tryGet(projection)) !== null && _a !== void 0 ? _a : new Epsg(projection);
|
|
127
128
|
}
|
|
128
129
|
const imgWkt = image.value(TiffTag.GeoAsciiParams);
|
|
129
130
|
const epsg = guessProjection(imgWkt);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/cli",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.24.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"files": [
|
|
61
61
|
"build/"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "8cfdb4b9821ae3e35e1fd56a551ed489817422a9"
|
|
64
64
|
}
|