@basemaps/server 6.24.0 → 6.25.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 +27 -0
- package/README.md +18 -3
- package/build/cli.d.ts.map +1 -1
- package/build/cli.js +1 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.25.0](https://github.com/linz/basemaps/compare/v6.24.2...v6.25.0) (2022-05-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @basemaps/server
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [6.24.2](https://github.com/linz/basemaps/compare/v6.24.1...v6.24.2) (2022-04-20)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **server:** indexing local tiffs should not crash ([#2152](https://github.com/linz/basemaps/issues/2152)) ([066f39f](https://github.com/linz/basemaps/commit/066f39f42bec2558353c03741ca2226028ac424a))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [6.24.1](https://github.com/linz/basemaps/compare/v6.24.0...v6.24.1) (2022-04-07)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @basemaps/server
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [6.24.0](https://github.com/linz/basemaps/compare/v6.23.0...v6.24.0) (2022-04-05)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @basemaps/server
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ This wraps the @basemaps/lambda-tiler into a standalone express http server.
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
10
|
+
basemaps-server --config path/to/config
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Usage with basemaps config, you will need access to basemaps' imagery cache
|
|
@@ -16,5 +16,20 @@ please contact basemaps@linz.govt.nz if you need access.
|
|
|
16
16
|
```
|
|
17
17
|
git clone github.com/linz/basemaps-config
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
```
|
|
19
|
+
basemaps-server --config basemaps-config/config
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Direct TIFF access
|
|
24
|
+
|
|
25
|
+
If you have a folder of tiffs the basemaps-server can index the folder and create tiles from
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
For example given a structure where there are two folders full of tiffs
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/images/00_gebco_2021_305-75m/01G0DBCAEQAAPD0D2F2VZS40XM/*.tiff
|
|
32
|
+
/images/10_geographx_nz_texture_shade_2012_8-0m_01FHRPYJ5FV1XAARZAC4T4K6MC/*.tiff
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
running `basemaps-server --config /images` will create two tile sets one for each folder `gebco_2021...` and `geographx_nz_t...` and then also create a combined layer in the order the tiffs are found.
|
package/build/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAkBhD,qBAAa,qBAAsB,SAAQ,OAAO;IAChD,MAAM,CAAC,WAAW,SAAuD;IACzE,MAAM,CAAC,KAAK;;;;;MAKV;IAEF,MAAM,CAAC,IAAI,UAAM;IAEX,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAkBhD,qBAAa,qBAAsB,SAAQ,OAAO;IAChD,MAAM,CAAC,WAAW,SAAuD;IACzE,MAAM,CAAC,KAAK;;;;;MAKV;IAEF,MAAM,CAAC,IAAI,UAAM;IAEX,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA+ClE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAsB3B"}
|
package/build/cli.js
CHANGED
|
@@ -32,6 +32,7 @@ export class BasemapsServerCommand extends Command {
|
|
|
32
32
|
continue;
|
|
33
33
|
const tileSet = basename(tiffPath);
|
|
34
34
|
const tsl = new TileSetLocal(tileSet, tiffPath);
|
|
35
|
+
tifSets.set(tiffPath, tsl);
|
|
35
36
|
await tsl.load();
|
|
36
37
|
TileSets.add(tsl, new Date('3000-01-01').getTime());
|
|
37
38
|
const wmtsUrl = `${serverUrl}/v1/tiles/${tileSet}/WMTSCapabilities.xml`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basemaps/server",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.25.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/linz/basemaps.git",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"bin/"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@basemaps/config": "^6.
|
|
36
|
-
"@basemaps/geo": "^6.
|
|
37
|
-
"@basemaps/lambda-tiler": "^6.
|
|
38
|
-
"@basemaps/shared": "^6.
|
|
35
|
+
"@basemaps/config": "^6.25.0",
|
|
36
|
+
"@basemaps/geo": "^6.25.0",
|
|
37
|
+
"@basemaps/lambda-tiler": "^6.25.0",
|
|
38
|
+
"@basemaps/shared": "^6.25.0",
|
|
39
39
|
"@linzjs/lambda": "^2.0.0",
|
|
40
40
|
"@oclif/command": "^1.8.0",
|
|
41
41
|
"fastify": "^3.27.4",
|
|
42
42
|
"pretty-json-log": "^1.0.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "7ef26df6d42b79298035033fb6434d086fa642f8"
|
|
45
45
|
}
|