@basemaps/server 6.27.0 → 6.29.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 +39 -0
- package/README.md +38 -6
- package/bin/basemaps-server.cjs +840 -0
- package/build/cli.d.ts +11 -12
- package/build/cli.d.ts.map +1 -1
- package/build/cli.js +86 -43
- package/build/server.d.ts.map +1 -1
- package/build/server.js +15 -2
- package/package.json +26 -10
- package/bin/basemaps-server.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
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.29.0](https://github.com/linz/basemaps/compare/v6.28.1...v6.29.0) (2022-06-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* upgrade sharp to fix the bad webp upscalling behaviour ([#2261](https://github.com/linz/basemaps/issues/2261)) ([68fe14c](https://github.com/linz/basemaps/commit/68fe14c0549a884c0c4ededa40eb2d4bd7098590))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **lambda-tiler:** serve assets via /v1/sprites and /v1/fonts ([#2246](https://github.com/linz/basemaps/issues/2246)) ([0e04c63](https://github.com/linz/basemaps/commit/0e04c631363d5b540ae16bfc8c4c7910e1308412))
|
|
17
|
+
* **tiler-sharp:** extract regions before rescaling them when overzooming ([#2240](https://github.com/linz/basemaps/issues/2240)) ([fe9b858](https://github.com/linz/basemaps/commit/fe9b8588bbbe1aa8e719f7c8c645eada8c7e2876))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [6.28.1](https://github.com/linz/basemaps/compare/v6.28.0...v6.28.1) (2022-06-07)
|
|
24
|
+
|
|
25
|
+
**Note:** Version bump only for package @basemaps/server
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [6.28.0](https://github.com/linz/basemaps/compare/v6.27.0...v6.28.0) (2022-06-06)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **docker:** add a container of basemaps-server and basemaps-landing ([#2225](https://github.com/linz/basemaps/issues/2225)) ([13f8144](https://github.com/linz/basemaps/commit/13f814446de0b2896e0ccca620d4b0a017380c14))
|
|
37
|
+
* **server:** bundle basemaps-server cli so its easier to install ([#2218](https://github.com/linz/basemaps/issues/2218)) ([8457b66](https://github.com/linz/basemaps/commit/8457b66be6d0f54decf43b515bb78853cefbc8ed))
|
|
38
|
+
* **server:** provide a better error when loading configuration bundles ([#2222](https://github.com/linz/basemaps/issues/2222)) ([8318192](https://github.com/linz/basemaps/commit/83181920c8a9e061babd38a8ffd0dec93830dced))
|
|
39
|
+
* **sprites:** create sprites using sharp ([#2235](https://github.com/linz/basemaps/issues/2235)) ([e7b6a9e](https://github.com/linz/basemaps/commit/e7b6a9e9c95359dc866b40e7a6988837a71d9d96))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
6
45
|
# [6.27.0](https://github.com/linz/basemaps/compare/v6.26.0...v6.27.0) (2022-05-29)
|
|
7
46
|
|
|
8
47
|
|
package/README.md
CHANGED
|
@@ -2,14 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
WMTS/XYZ Tile server command line interface.
|
|
4
4
|
|
|
5
|
-
This wraps the @basemaps/
|
|
5
|
+
This wraps the @basemaps/tiler into a standalone express http server.
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
|
+
Basemaps server expects a folder tree full of configuration, with multiple tilesets and styles configuration files.
|
|
8
9
|
|
|
10
|
+
```bash
|
|
11
|
+
basemaps-server --config path/to/config/
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Usage docker
|
|
15
|
+
|
|
16
|
+
The server is also published as a docker container
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
docker run -it \
|
|
20
|
+
--volume $PWD/config:/config \
|
|
21
|
+
--volume $PWD/tiffs:$PWD/tiffs \
|
|
22
|
+
-p 5000:5000 \
|
|
23
|
+
ghcr.io/linz/basemaps-server:v6.28.0 --config /config
|
|
9
24
|
```
|
|
10
|
-
|
|
25
|
+
|
|
26
|
+
Where `${PWD}/config` contains all the configuration and `${PWD}/tiffs` is all the relevant tiff files
|
|
27
|
+
|
|
28
|
+
### Bundled configuration
|
|
29
|
+
|
|
30
|
+
Basemaps server can also be configured with a single configuration bundle file, which can be created from a configuration folder
|
|
31
|
+
|
|
32
|
+
By bundling the configuration the startup time is greatly reduced as each individual tiff file does not have to be scanned for dimensions, it does mean that new tiffs will not be picked up until a new bundle is created.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
basemaps-server --config path/to/config/ --bundle config.bundle.json
|
|
36
|
+
basemaps-server --config config.bundle.json
|
|
11
37
|
```
|
|
12
38
|
|
|
39
|
+
|
|
40
|
+
### Usage with LINZ imagery
|
|
13
41
|
Usage with basemaps config, you will need access to basemaps' imagery cache
|
|
14
42
|
|
|
15
43
|
please contact basemaps@linz.govt.nz if you need access.
|
|
@@ -20,6 +48,8 @@ basemaps-server --config basemaps-config/config
|
|
|
20
48
|
```
|
|
21
49
|
|
|
22
50
|
|
|
51
|
+
|
|
52
|
+
|
|
23
53
|
### Direct TIFF access
|
|
24
54
|
|
|
25
55
|
If you have a folder of tiffs the basemaps-server can index the folder and create tiles from
|
|
@@ -32,7 +62,7 @@ For example given a structure where there are two folders full of tiffs
|
|
|
32
62
|
/images/10_geographx_nz_texture_shade_2012_8-0m_01FHRPYJ5FV1XAARZAC4T4K6MC/*.tiff
|
|
33
63
|
```
|
|
34
64
|
|
|
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.
|
|
65
|
+
running `basemaps-server --config /images --no-config` 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.
|
|
36
66
|
|
|
37
67
|
|
|
38
68
|
## Developing
|
|
@@ -40,8 +70,10 @@ running `basemaps-server --config /images` will create two tile sets one for eac
|
|
|
40
70
|
When running the `@basemaps/server` in development mode, ensure `@basemaps/landing` page has been bundled
|
|
41
71
|
|
|
42
72
|
```bash
|
|
43
|
-
|
|
44
|
-
yarn
|
|
73
|
+
yarn
|
|
74
|
+
yarn build
|
|
75
|
+
|
|
76
|
+
npx lerna run bundle --stream # Bundle everything
|
|
45
77
|
```
|
|
46
78
|
|
|
47
|
-
This will package all the static assets into `landing/dist` and will be served from `http://localhost:
|
|
79
|
+
This will package all the static assets into `landing/dist` and will be served from `http://localhost:5000`
|