@basemaps/server 6.38.0 → 6.40.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 CHANGED
@@ -3,6 +3,34 @@
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.40.0](https://github.com/linz/basemaps/compare/v6.39.0...v6.40.0) (2023-03-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **server:** Fix the server cli to load config from config path. ([#2690](https://github.com/linz/basemaps/issues/2690)) ([64d1f14](https://github.com/linz/basemaps/commit/64d1f14910324b04cf4355200141454fb1a3b0ad))
12
+ * **server:** make --no-config actually load the configuration from tiffs ([#2682](https://github.com/linz/basemaps/issues/2682)) ([019ee50](https://github.com/linz/basemaps/commit/019ee50ee22cda2ce143f9a012d4aaa9ffc0edc9))
13
+
14
+
15
+ ### Features
16
+
17
+ * **server:** change CLI interface to support multiple tiff folders ([#2688](https://github.com/linz/basemaps/issues/2688)) ([7fcd310](https://github.com/linz/basemaps/commit/7fcd310425aaf02bbadab2bb3b89cce5b7462c8f))
18
+
19
+
20
+
21
+
22
+
23
+ # [6.39.0](https://github.com/linz/basemaps/compare/v6.38.0...v6.39.0) (2023-01-25)
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * **server:** correctly forward array query strings to the lambda function ([#2630](https://github.com/linz/basemaps/issues/2630)) ([4a021b2](https://github.com/linz/basemaps/commit/4a021b20ad55709861bcb910cd48a2d0e9d3c26b))
29
+
30
+
31
+
32
+
33
+
6
34
  # [6.38.0](https://github.com/linz/basemaps/compare/v6.37.0...v6.38.0) (2022-12-11)
7
35
 
8
36
  **Note:** Version bump only for package @basemaps/server
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  WMTS/XYZ Tile server command line interface.
4
4
 
5
- This wraps the @basemaps/tiler into a standalone express http server.
5
+ This wraps the [@basemaps/lambda-tiler](https://github.com/linz/basemaps/blob/master/packages/lambda-tiler/README.md) into a standalone http server using [fastify](https://www.fastify.io/).
6
6
 
7
7
  ## Usage
8
8
  Basemaps server expects a folder tree full of configuration, with multiple tilesets and styles configuration files.
@@ -20,19 +20,19 @@ docker run -it \
20
20
  --volume $PWD/config:/config \
21
21
  --volume $PWD/tiffs:$PWD/tiffs \
22
22
  -p 5000:5000 \
23
- ghcr.io/linz/basemaps-server:v6.28.0 --config /config
23
+ ghcr.io/linz/basemaps-server:v6 --config /config
24
24
  ```
25
25
 
26
26
  Where `${PWD}/config` contains all the configuration and `${PWD}/tiffs` is all the relevant tiff files
27
27
 
28
28
  ### Bundled configuration
29
29
 
30
- Basemaps server can also be configured with a single configuration bundle file, which can be created from a configuration folder
30
+ Basemaps server can also be configured with a single JSON configuration bundle file using [@basemaps/cli](https://github.com/linz/basemaps/blob/master/packages/cli/README.md)
31
31
 
32
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
33
 
34
34
  ```bash
35
- basemaps-server --config path/to/config/ --bundle config.bundle.json
35
+ bmc bundle --config config/ --output config.bundle.json
36
36
  basemaps-server --config config.bundle.json
37
37
  ```
38
38
 
@@ -41,33 +41,33 @@ basemaps-server --config config.bundle.json
41
41
  Usage with basemaps config, you will need access to basemaps' imagery cache
42
42
 
43
43
  please contact basemaps@linz.govt.nz if you need access.
44
- ```
44
+
45
+ ```bash
45
46
  git clone github.com/linz/basemaps-config
46
47
 
47
- basemaps-server --config basemaps-config/config
48
+ bmc bundle --config basemaps-config/config --output config.bundle.json
49
+ basemaps-server --config config.bundle.json
48
50
  ```
49
51
 
50
52
 
51
-
52
-
53
53
  ### Direct TIFF access
54
54
 
55
- If you have a folder of tiffs the basemaps-server can index the folder and create tiles from
55
+ If you have a folder of tiffs the `@basemaps/server` can index the folder and create tiles from it
56
56
 
57
57
 
58
58
  For example given a structure where there are two folders full of tiffs
59
59
 
60
60
  ```
61
- /images/00_gebco_2021_305-75m/01G0DBCAEQAAPD0D2F2VZS40XM/*.tiff
62
- /images/10_geographx_nz_texture_shade_2012_8-0m_01FHRPYJ5FV1XAARZAC4T4K6MC/*.tiff
61
+ /images/00_gebco_2021_305-75m/*.tiff
62
+ /images/10_geographx_nz_texture_shade_2012_8-0m/*.tiff
63
63
  ```
64
64
 
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.
65
+ running `basemaps-server /images/00_gebco_2021_305-75m/ /images/10_geographx_nz_texture_shade_2012_8-0m/` 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.
66
66
 
67
67
 
68
68
  ## Developing
69
69
 
70
- When running the `@basemaps/server` in development mode, ensure `@basemaps/landing` page has been bundled
70
+ When running the `@basemaps/server` in development mode, ensure `@basemaps/landing` page has been built and bundled
71
71
 
72
72
  ```bash
73
73
  yarn